This is Python! (part 9)

Tags

, , ,

This series of posts is for those who have used a programming language before but are not familiar with Python. The first six posts introduced the language; the seventh discussed how to download, install, and start using Python.

The last post began an exploration of user-defined data type (aka classes). This post picks up where we left off.

Continue reading

This is Python! (part 3)

Tags

, ,

This is the third post in a series for those who have never used Python but have used a programming language before. These posts are meant as an introduction to this delightful and popular programming language.

The first post introduced Python’s most basic data types; the second post introduced its more interesting list-like data types. In this post, we’ll start digging deeper into those list-like data types and what they can do.

Continue reading

This is Python! (part 2)

Tags

, ,

This is the second post in a series for those who have never used Python but have used a programming language before. These posts are an introduction to this delightful and popular (free) programming language.

The first post introduced Python’s most basic data types: int, float, str, bool, and None. In this post we’ll meet the list-like data types.

Continue reading

This is Python! (part 1)

Tags

, ,

There is a well-known movie line: “This! Is! Sparta!!” To begin the new year, here begins a series of posts under the rubric of “This is Python!” (Python isn’t quite as emphatic about things as Spartans, so it’s just one sentence with one exclamation point.)

These posts are meant for those who have never met Python but who have used a programming language before and know the general concepts. These posts provide a tour of the language.

Continue reading

Tk Calculator App Extra

Tags

,

The last three posts (see here, here, and here) have taken us through Python’s standard tkinter module from the basics to a simple windowed application with a text window for editing and the usual features for loading and saving text files.

I mentioned in the second post that I’d “implement a simple word-counter to replace the calculator parsing and execution code.” That’s what today’s short end-of-the-year post is about.

Continue reading