Python essentials
Python reads like plain instructions, which is why it turns up in scripting, data work, servers and teaching. This course walks from the shape of the language to classes, files and modules.
What you'll learn
15 chapters, then the quiz
- 01IntroductionWhat Python is and how you run it.
- 02Syntax and indentationIndentation is the structure, not decoration.
- 03VariablesNames point at values, and the value carries the type.
- 04Data typesThe built-in types and how to check one.
- 05Numbers and mathsInteger and float behaviour, and the two divisions.
- 06StringsQuoting, formatting and slicing text.
- 07ListsThe ordered container you will use most.
- 08Tuples and setsFrozen sequences and unique collections.
- 09DictionariesKeys mapped to values, and how to read them safely.
- 10Conditionsif, elif, else and what counts as true.
- 11Loopsfor, while, range and how to stop early.
- 12Functionsdef, arguments, return values and lambda.
- 13Classes and objectsBundling data with the code that works on it.
- 14File handlingReading and writing files without leaking handles.
- 15Modules and packagesSplitting code up and pulling other code in.