Python for Beginners: Learn to Code with Real Projects
Free Python course for beginners. 15 lessons with tested code: variables, loops, functions, files, errors, classes, CSV reports, automation and a final project.
Variables, Numbers, Text and input() in Python - Learn how to store values in variables, do maths, work with text, use f-strings for neat output, convert between text and numbers, and ask the user for input.
Lists and Loops in Python: for, while and range - Store many values in a list, repeat work with for and while loops, use range and enumerate, filter with list comprehensions and slice parts of a list.
Dictionaries, Tuples and Sets in Python - Use dictionaries to store data by name, count things, build tables from lists of dictionaries, and learn when to use tuples and sets for fixed or unique values.
Functions, Text and Files
Functions in Python: def, Arguments and return - Write your own functions with def: parameters, default values, keyword arguments, return values, scope and the mutable default argument trap.
Modules, pip and Virtual Environments in Python - Split your code into modules, use the standard library, install packages with pip, create a virtual environment and keep a requirements.txt for your project.
Objects, Libraries and Projects
Classes and Objects in Python: A Gentle Introduction - Learn what classes and objects are, write a class with __init__ and methods, use dataclasses for simple records, and see inheritance with a wallet example.
Mini Project: Analyse a CSV File and Make a Report - Build a small data project: read an expenses CSV file, group amounts by category, sort, work out shares and print a neat report you can reuse at work.