Python Basics
The handful of Python ideas (values, decisions, repetition, functions, text) that every other lesson in this course builds on.
After this lesson you will be able to
- Store and combine values with variables, numbers, text and booleans, and predict what each operator returns.
- Choose between branches with
if/elif/else, and repeat work withforandwhile. - Write a function with parameters and a return value, and call it.
- Slice and transform text, and turn a line of input into numbers.
- Avoid the classic early traps: integer versus true division, floating-point error, off-by-one in
range, and=versus==.