13. Python Chapter 2 — types, expressions and I/O - revision mindmap
All mindmaps · Full chapter · Practice answers

Open full-resolution image · Printable collection - page 13
The map is a completed revision summary. Cover a branch and reconstruct it, then try the linked chapter practice. Read the image at full size when labels are small.
Text version
Types and values
- int, float, bool and str
- Identifier versus arithmetic quantity
- Literal value versus textual representation
- Type conversion and possible failure
Names and assignment
- Valid, case-sensitive identifiers
- Right-hand expression evaluated first
- Name binding and reassignment
- Tuple unpacking; simultaneous swap
Operators
- Arithmetic and precedence
- Division versus floor division
- Remainder consistent with quotient
- Boolean operations and short-circuit guards
Input and output
- input returns a string
- print: separator and ending
- Escapes: newline, tab and backslash
- Format precision versus minimum field width
Libraries and bounds
- Imports and qualified calls
- sqrt, floor, ceil and pi
- randint includes both endpoints
- randrange excludes stop; random in [0, 1)
Worked example & exam traps
- -7 // 3 = -3 and -7 % 3 = 2; -7 = (-3 × 3) + 2.
- 3661 seconds → 1 hour, 1 minute, 1 second using // and %.
- input of 12 is text; int converts it before numeric arithmetic.
- Avoid: ^ means power; formatting increases accuracy; upper list index = length
Sources and reading
This map condenses Chapter 13 and its source trail. Use the self-learning reading guide for the corresponding VJC pages and A notes. It does not add topics to the stated promo scope.