Further Reading: Python Fundamentals I
You've just learned the building blocks of Python: variables, data types, expressions, strings, and error messages. If you want to reinforce these skills or explore further before moving on to Chapter 4, here are the resources I'd recommend.
Tier 1: Verified Sources
These are published books that I can confirm exist with full bibliographic details. Each one covers the same fundamentals from a slightly different angle, and any of them would complement this chapter well.
Al Sweigart, Automate the Boring Stuff with Python (No Starch Press, 2nd edition, 2019). This is one of the most popular Python books for beginners, and for good reason. Chapters 1 and 2 cover variables, expressions, data types, and string manipulation — the same material as our Chapter 3 — with a focus on practical automation tasks like renaming files and working with spreadsheets. The entire book is available free online at the author's website. If you want extra practice with the basics in a different context, this is where to go.
Allen B. Downey, Think Python: How to Think Like a Computer Scientist (O'Reilly, 3rd edition, 2024). Downey's approach is more computer-science-flavored than ours — he cares about how variables work in memory, what expressions actually evaluate to under the hood, and how to build mental models of program execution. Chapters 1 through 3 of Think Python cover variables, expressions, and strings with particular attention to the "how does this actually work?" questions that curious readers often ask. The 3rd edition uses Python 3.12+ and is also available as a free online edition.
Eric Matthes, Python Crash Course: A Hands-On, Project-Based Introduction to Programming (No Starch Press, 3rd edition, 2023). If you prefer a project-based approach — "let's build something and learn along the way" — this is the book. Chapters 1 and 2 cover variables, strings, and numbers with plenty of "try it yourself" exercises. The book's second half walks through building real projects (a game, a data visualization, and a web application), which can be motivating if you like seeing the bigger picture.
Tier 2: Attributed Resources
These are well-known resources in the Python community. I'm providing enough detail for you to find them, but not URLs (because web links change).
The Official Python Tutorial (docs.python.org). Python's own documentation includes a tutorial written for beginners. The section "An Informal Introduction to Python" covers numbers, strings, and basic operations in a concise, example-driven style. It's drier than a textbook, but it's the most authoritative source — this is what the language designers wrote. Search for "Python tutorial" on docs.python.org.
Real Python (realpython.com). This website publishes high-quality, in-depth tutorials on Python topics. Their articles on "Python Variables," "Basic Data Types in Python," and "Python String Formatting Best Practices" are well-written and include interactive code examples. If you want more practice with f-strings or string methods specifically, their guides are some of the best available online.
Python Tutor (pythontutor.com), created by Philip Guo. This is an interactive visualization tool where you can type Python code and watch it execute step by step, seeing exactly how variables are created, reassigned, and stored in memory. It's particularly helpful for understanding the "variables as labels" concept — you can literally see the labels and values on screen. If the threshold concept from this chapter still feels abstract, spend 15 minutes on Python Tutor and it will click.
Recommended Next Steps
-
If variables and types feel solid: Move on to Chapter 4. You're ready for control flow, and the concepts from this chapter will get reinforced through constant use.
-
If you want more practice with the basics: Work through the first two chapters of Automate the Boring Stuff with Python or Python Crash Course. Both cover the same ground with different examples, and seeing the same concepts twice in different contexts is one of the most effective ways to learn.
-
If the "variables as labels" idea still feels fuzzy: Visit Python Tutor and type in the examples from Section 3.1. Watching the visualization of how
a = 10andb = awork in memory will make the concept concrete. -
If you're curious about how Python works under the hood: Read the first three chapters of Think Python. Downey goes deeper into the mechanics of how Python evaluates expressions and manages memory, which is satisfying if you're the kind of learner who wants to understand why things work, not just how.
-
If you want to explore string formatting in more depth: Search Real Python for their article on f-string formatting. It covers advanced format specifiers (alignment, padding, number formatting) that we'll use throughout the book but only briefly introduced in this chapter.