Python · Beginner
Python Programming
Fifty-six lessons that build genuine Python skill: syntax, data structures, control flow, functions, files, errors, modules and five small programs you will actually use.
First steps
- 1 Hello, Python Python —
- 2 Variables Python —
- 3 Numbers and maths Python —
- 4 Strings and f-strings Python —
- 5 input() Python —
- 6 Booleans and comparisons Python —
- 7 Comments and names Python —
- 8 Type conversion Python —
- 9 Debug a script Python —
- 10 Your first program Concept —
Data structures
- 11 Lists Python —
- 12 List methods Python —
- 13 Slicing Python —
- 14 Loops over lists Python —
- 15 Dictionaries Python —
- 16 Tuples Python —
- 17 Sets Python —
- 18 Nested structures Python —
- 19 Sorting Python —
- 20 Pick the right structure Concept —
Control flow and functions
- 21 if / elif / else Python —
- 22 Truthiness Python —
- 23 while loops Python —
- 24 range() Python —
- 25 break and continue Python —
- 26 Defining functions Python —
- 27 Arguments and defaults Python —
- 28 Return vs print Python —
- 29 Scope Python —
- 30 Combine it Concept —
Files, errors and modules
- 31 Reading a file Python —
- 32 Writing a file Python —
- 33 try / except Python —
- 34 Raising errors Python —
- 35 Importing modules Python —
- 36 Dates and times Python —
- 37 CSV files Python —
- 38 JSON Python —
- 39 List comprehensions Python —
- 40 Clean up a script Concept —
Build something real
- 41 Average of a list Python —
- 42 Count with a dict Python —
- 43 Filter a list Python —
- 44 Sort by a key Python —
- 45 Build a fee calculator Python —
- 46 Search a list Python —
- 47 Format money Python —
- 48 Simple classes Python —
- 49 Work with an API Python —
- 50 Your Python toolbox Concept —
Capstone: five small programs
- 51 Format an academy invoice Python —
- 52 Tally attendance with a dictionary Python —
- 53 Average a column of text data Python —
- 54 Write a function with a default argument Python —
- 55 Model a student with a class Python —
- 56 Guard bad input with try/except Python —
Final exam and certificate
Twenty questions from the whole track. Pass mark is 60%. Retakes are free and the best score is the one printed on your certificate.
Create a free account to take the exam