1 · 30 lessons
Python foundations
Values, strings, control flow, functions, data structures, errors, files, JSON and dates, then a small project.
Progress and your code are kept in this browser only.
- 1Values and names
- 2Printing output
- 3Strings and f-strings
- 4Numbers
- 5Comparisons and booleans
- 6Branching
- 7None, the missing value
- 8Indexing and slicing
- 9String methods
- 10Loops
- 11break, continue and else
- 12Functions
- 13Local and global scope
- 14Lists
- 15List methods and copies
- 16Tuples and unpacking
- 17Dicts and sets
- 18More comprehensions
- 19Grouping and counting
- 20Nested data
- 21Recursion
- 22Sorting with key and lambda
- 23Errors and try/except
- 24Raising your own exceptions
- 25Reading and writing files
- 26Paths and folders
- 27JSON files
- 28Dates and times
- 29math and random
- 30Project: a word report