0% found this document useful (0 votes)
11 views8 pages

Python Data Types Explained

The document outlines the various data types in Python, categorized into seven main types: Numeric (int, float, complex), Sequence (list, tuple, range), Text (str), Set (set, frozenset), Mapping (dict), Boolean (bool), and None (NoneType). Each type is briefly defined, highlighting its characteristics. This classification is essential for understanding how to work with data in Python programming.

Uploaded by

sbaibhav73
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views8 pages

Python Data Types Explained

The document outlines the various data types in Python, categorized into seven main types: Numeric (int, float, complex), Sequence (list, tuple, range), Text (str), Set (set, frozenset), Mapping (dict), Boolean (bool), and None (NoneType). Each type is briefly defined, highlighting its characteristics. This classification is essential for understanding how to work with data in Python programming.

Uploaded by

sbaibhav73
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

Data Types in Python

1. Numeric Types

• int - Integer values


• float - Decimal values
• complex - Complex numbers
2. Sequence Types

• list - Ordered, mutable collection


• tuple - Ordered, immutable collection
• range - Sequence of numbers
3. Text Type

• str - String of characters


4. Set Types

• set - Unordered collection of unique elements


• frozenset - Immutable set
5. Mapping Type

• dict - Collection of key-value pairs


6. Boolean Type

• bool - True or False


7. None Type

• NoneType - Represents the absence of value

You might also like