Think Python, third edition
Start: Start with Chapter 1: Programming as a way of thinking, then the exercises in Chapters 2 and 3.
Write small programs, understand each step, test the results and fix errors in your code.
Choose Python for calculations and automation, or MDN’s getting-started material for web pages. Finish a small task in one path.
Use inputs, variables, conditions and loops. Explain what each step does in your own words.
Test ordinary values, zero and invalid inputs. Write the expected result before running each case.
Build something such as an expense total or a word counter. Document how to run it, its limits and three test results.
Start: Start with Chapter 1: Programming as a way of thinking, then the exercises in Chapters 2 and 3.
Start: Read Chapters 1–5 first. Then try Chapter 10 using your own practice files.
Start: Read Values, Types, and Operators, Program Structure, then Functions; work through the exercises.
Start: Start with Functions, Variables and attempt the first problem set yourself.
Start: Read section 3: An Informal Introduction to Python, then section 4: More Control Flow Tools.
Start: Start with Getting started modules, then move to Core modules.