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 }