Python/Fundamentals 5 min
Values, variables and types
Numbers, strings, booleans and how Python names them.
typesstringsf-strings
Python variables are names bound to values; you never declare a type. The core scalar types are int, float, str and bool.
python · editable
loading editor…
Strings support slicing and f-strings, which interpolate expressions directly into text.
python · editable
loading editor…
Use // for integer division, % for the remainder and ** for powers.
practice this