Learn / Python
Track
Python, from your first line.
Python is the most popular programming language in the world, used for data, automation, testing, AI and engineering. Every lesson here runs real Python in your browser and checks your answer.
- 1Your first line of Python
Write and run your first Python program in the browser: print a message and see it appear. - 2Variables and maths: millimetres to inches
Store values in variables and do maths with them in Python, using a real unit conversion. - 3Conditions: pass or fail
Make decisions in Python with if and else, and write your first function. - 4Lists and loops: averaging sensor readings
Work with lists of numbers and loop over them in Python, with an empty-list edge case. - 5Functions: a pressure unit converter
Write a reusable Python function that converts megapascals to psi, as engineers do. - 6Dictionaries: counting words
Use Python dictionaries to count how often each word appears in a piece of text.