PYTHON · 101
Python 101
FreeHow Python turns plain English looking syntax into running programs.
25 topics·7 sections·Animations included
Foundations
4 topicsPYVARS
Variables and Types
How Python names values and what built-in types you start with.
3 sectionsRead →
OPERATORS
Operators and Expressions
Arithmetic, comparison, and logical operators, plus how they combine.
2 sectionsRead →
STRINGS
Strings
Text as a sequence of characters, and the methods you reach for daily.
3 sectionsRead →
PYIO
Input and Output
Talking to the user with print and input, and how a script actually runs.
2 sectionsRead →
Control Flow
3 topicsData Structures
4 topicsFunctions
4 topicsFUNCTIONS
Defining Functions
Wrapping a chunk of behavior behind a name.
2 sectionsRead →
ARGUMENTS
Arguments
All the ways to pass values into a function.
3 sectionsRead →
SCOPE
Scope and Closures
Where names live and how nested functions remember them.
2 sectionsRead →
HIGHERORDER
Higher Order Functions
Treating functions as values you can pass around.
2 sectionsRead →
Classes and OOP
4 topicsCLASSES
Classes and Instances
Bundling state and behavior into a custom type.
3 sectionsRead →
INHERITANCE
Inheritance
Building new classes on top of existing ones.
2 sectionsRead →
DUNDERS
Dunder Methods
Special methods that hook into Python syntax.
2 sectionsRead →
ENCAPSULATION
Properties and Encapsulation
Controlling how attributes are read and written.
2 sectionsRead →
Idiomatic Python
4 topicsCOMPREHENSIONS
Comprehensions
Building collections inline from an expression and a loop.
2 sectionsRead →
ITERATORS
Iterators and Generators
How for loops work under the hood, and how to write your own.
3 sectionsRead →
DECORATORS
Decorators
Modifying a function by wrapping another function around it.
3 sectionsRead →
CONTEXTS
Context Managers
Guaranteeing cleanup with the with statement.
2 sectionsRead →