Checkpoint 4.2.1.
A list can contain only integer items.
- False
- Yes, unlike strings, lists can consist of any type of Python data.
- True
- Lists are heterogeneous, meaning they can have different types of data.
[ and ]).
[10, 20, 30, 40]
["spam", "bungee", "swallow"]
["hello", 2.0, 5, [10, 20]]
[].