Python for Beginners: Write Code That Actually Runs, Then Make It Better
This is for people who have never written a line of code and want to start with Python. You will install Python, write small programs that actually run, and learn to read your own errors instead of guessing. If you skip the basics and copy code you do not understand, you will get stuck the first time something breaks, and something always breaks.
Course access
-
Before You Write Code (empty)3Lessons · 15 min
-
Introduction to Python Programming: What It Is and Why Start Here
What Python is, what a small program looks like, and how Python actually runs your code. After this, you'll know why Python is a sensible first language and which beginner mistakes to avoid from day one.
5 min -
Installing Python and Running Your First Script
Check what's already on your computer, install Python 3, try the interactive shell, then write and run your first script. If something fails, the troubleshooting list starts with the most likely cause.
5 min -
-
-
The Basics You Cannot Skip (empty)4Lessons · 20 min
-
Python Variables and Data Types
Create variables and use the four basic data types: str, int, float and bool. You'll also see why "5" and 5 are not the same thing. A lot of beginner bugs start there.
5 min -
Python Operators and Expressions
Arithmetic, comparison and logical operators, plus shortcuts like +=. After this, you can write expressions that calculate and compare values, and you'll know why 0.1 + 0.2 doesn't give exactly 0.3.
5 min -
Getting Input and Printing Output in Python
Print output, build readable text with f-strings, and read what the user types with input(). By the end, you can clean up that input and build a small tip calculator.
5 min -
-
-
Making Decisions and Repeating Work (empty)3Lessons · 15 min
-
Python If Statements: Making Your Code Decide
Use if, elif and else so your code can choose what to do. Covers combined conditions, truthy and falsy values and the one-line form, plus the mistakes that make a condition quietly do the wrong thing.
5 min -
Python Loops: For, While, and When to Stop
Repeat work with for and while, loop a set number of times with range(), and control a loop with break and continue. You'll also build an input loop that knows when to stop.
5 min -
-
-
Organizing Your Code (empty)3Lessons · 15 min
-
Python Functions: Stop Copying and Pasting
Write functions with parameters, return values and default values, so you stop copying and pasting the same code. It also explains why variables inside a function stay inside it.
5 min -
Python Lists and Dictionaries
Store groups of values in lists and labelled values in dictionaries, then slice, check and loop over them. By the end, you can work with a list of dictionaries, which is how a lot of real data looks.
5 min -
-
-
When Things Go Wrong (empty)3Lessons · 15 min
-
Reading Python Error Messages Instead of Panicking
Read a traceback from the bottom up, recognise the errors you'll meet most, and follow a simple process to fix them. An error message is not the computer yelling at you. It's telling you where to look.
5 min -
Python Try and Except: Handling Errors Properly
Catch errors with try and except, catch the specific error instead of everything, and use else, finally and raise. You'll finish with an input loop that keeps asking until the answer is valid.
5 min -
-
-
Final Check: Python for Beginners (empty)1Lessons · 15 min
-
About
This is for people who have never written a line of code and want to start with Python. You will install Python, write small programs that actually run, and learn to read your own errors instead of guessing. If you skip the basics and copy code you do not understand, you will get stuck the first time something breaks, and something always breaks.
- Responsible
- Jay P
- Last Update
- 09/18/2026
- Completion Time
- 1 h 35 min
- Members
- 1
Reviews
Sign in to write a reviewComments
Sign in to commentNo comments yet.