STEM ยท Full roadmap ยท ~105 min read ยท 28 steps
๐Python from zero
Read, write, and run real Python and build a small program of your own
Activities in this path
Skill tree
0 / 28 steps
Unit 1
Start here
Course overview
What Python is and why people like it
Python is a readable, general-purpose language
Running your first code
Where Python code actually runs
Variables: naming your data
A variable is a label pointing at a value
Types: text, numbers, and true/false
Every value has a type that decides what you can do with it
Unit 2
Numbers and operators
Python does math with familiar and a few new operators
Strings and what you can do with them
Strings are text you can slice, join, and transform
f-strings: putting values into text
f-strings drop variables straight into a string
Booleans and comparisons
Comparisons produce True or False
Making decisions with if, elif, else
if runs code only when a condition is True
Unit 3
Indentation and why Python cares
Indentation defines code blocks in Python
Lists: ordered collections
A list holds many values in order
Dictionaries: lookups by name
A dictionary maps keys to values
Tuples and sets
Tuples are fixed sequences, sets hold unique items
Looping over things with for
A for loop repeats code once per item
Unit 4
Looping with while
A while loop repeats until a condition turns False
Functions: reusable blocks of code
A function is a named, reusable block you can call
Arguments: passing data into functions
Parameters let a function work on different inputs
return: getting a value back
return sends a result out of a function
Scope: where variables live
Variables inside a function stay inside it
Unit 5
Reading input from the user
input pauses and waits for the user to type
Handling errors with try and except
try and except catch errors instead of crashing
Importing modules: math and random
import brings in code other people wrote
List comprehensions
A comprehension builds a list in one line
Working with files
open lets you read and write files on disk
Unit 6
Common beginner mistakes
A checklist of the bugs that catch everyone
A practice routine and a tiny capstone
How to keep improving, with a first project to build
Where to go next
Where to go next