0% found this document useful (0 votes)
15 views1 page

Python Data Types Explained

The document outlines various data types in Python, including Integer, Float, String, Boolean, List, Tuple, Dictionary, and Set. Each data type is defined with a brief description and examples. These data types are fundamental for programming in Python.

Uploaded by

anmoldhillon491
Copyright
© All Rights Reserved
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% found this document useful (0 votes)
15 views1 page

Python Data Types Explained

The document outlines various data types in Python, including Integer, Float, String, Boolean, List, Tuple, Dictionary, and Set. Each data type is defined with a brief description and examples. These data types are fundamental for programming in Python.

Uploaded by

anmoldhillon491
Copyright
© All Rights Reserved
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

DATA TYPES IN PYTHON

1. Integer (int)
Represents whole numbers (no decimal).
Example: 10, -5

2. Float (float)
Represents decimal numbers.
Example: 3.14, 55.8

3. String (str)
Represents text written in quotes.
Example: "Anmol", 'Hello'

4. Boolean (bool)
Represents True or False.
Example: True, False

5. List
A changeable collection of items.
Example: [ "apple", "banana", "mango" ]

6. Tuple
An unchangeable collection of items.
Example: ( "red", "blue", "green" )

7. Dictionary (dict)
Stores data in key–value pairs.
Example: { "name": "Anmol", "age": 20 }

8. Set
A collection of unique values.
Example: { 1, 2, 3, 4 }

You might also like