Data Types in Python
Data types say what kind of value you have. Scalars you meet daily: int, float, bool, str. Collections: list, tuple, set, dict. None has type NoneType. type(x) prints the type. Everything is an object — even 5 and print.
Pick the right box. Marks as int or float. A name as str. A row of names as list. A labelled record as dict. Using a list when you needed a dict makes lookup painful. Viva: name four scalars and four collections separately.
Data Types in Python — output — <class 'int'> 40, then float 1999.5, then bool True.
Scalar types and collection types separately.