Robotics & Artificial Intelligence
In what ways Python data types are categorised?
Python Funda
3 Likes
Answer
Python data types are categorised into the following groups:
- Numeric — Represents data with numeric values. It includes:
- Integer (int): whole numbers without a decimal point.
- Float: fractional numbers with a decimal point.
- Complex: combination of a real number and an imaginary number.
- Non-Numeric — Includes Boolean data type (True or False).
- Sequences — Ordered collection of items, includes:
- String
- List
- Tuple
- Sets — Unordered collection of unique elements.
- Dictionary — Unordered set of key-value pairs.
Answered By
2 Likes