KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

In what ways Python data types are categorised?

Python Funda

1 Like

Answer

Python data types are categorised into the following groups:

  1. 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.
  1. Non-Numeric — Includes Boolean data type (True or False).
  2. Sequences — Ordered collection of items, includes:
  • String
  • List
  • Tuple
  1. Sets — Unordered collection of unique elements.
  2. Dictionary — Unordered set of key-value pairs.

Answered By

1 Like


Related Questions