Python: free course
Learn programming with Python: variables, input and output, conditions, loops, lists, dictionaries and functions.
Start lesson 1 Open the interactive course Printable course notes
Lessons
- 1 Python introduction: what it is, why it's so popular, who uses it and your first programs
- 2 Variables, input and type conversion
- 3 Numbers and strings: data types, conversion, text basics and formatting
- 4 Operators, booleans and making decisions
- 5 Strings in depth: slicing, methods and f-strings
- 6 If statements: making decisions with if, elif, else, and, or, not and match
- 7 Lists and loops: storing many values and repeating actions
- 8 while loops, break, continue and loop patterns
- 9 Tuples, sets and comprehensions
- 10 Functions and dictionaries: reusable code and key-value data
- 11 Functions in depth: defaults, *args, **kwargs and lambda
- 12 Dictionaries in depth: nested data and counting
- 13 Errors and exceptions: try, except, else, finally, raising errors and working with files
- 14 Working with CSV and JSON data
- 15 Modules and the standard library: import, math, random, datetime, statistics, os and pip
- 16 Dates, times, random numbers and maths
- 17 Automation with Python: files, Excel reports, web APIs and scheduled tasks
- 18 Classes and objects: object-oriented programming in Python
- 19 Project: a transaction charges calculator with tariff bands, validation and reports
- 20 Project: a school grade report system