The document outlines the basic data types in Python, including numeric types (int, float, complex), boolean (bool), text (str), sequence types (list, tuple, range), set types (set, frozenset), mapping type (dict), and None type. It also describes the use of the type() function to check the data type of a variable or value, providing examples for each type. The syntax for the type() function is presented along with sample outputs.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
8 views2 pages
Basic Data Types in Python
The document outlines the basic data types in Python, including numeric types (int, float, complex), boolean (bool), text (str), sequence types (list, tuple, range), set types (set, frozenset), mapping type (dict), and None type. It also describes the use of the type() function to check the data type of a variable or value, providing examples for each type. The syntax for the type() function is presented along with sample outputs.