166,491 views
36 votes
36 votes
It would be a lot simpler if there were only one type of variable, but programming languages such as Python have multiple types. Why do you think this is.

User Crferreira
by
2.9k points

1 Answer

23 votes
23 votes
The types of data that are held in a variable are: String, Integer, float, complex, tuple, list, range, dict, set, frozenset, bool, bytes, bytearray, memoryview, and Nonetype
User HuangJie
by
3.1k points