Class 11 – Python
Chapter: Data Types
1. What is a Data Type?
• Data type tells what type of value a variable holds.
• Python automatically decides the data type.
• Example: a = 10 (integer), name = "Ram" (string)
2. Python is Dynamically Typed
• No need to declare data type.
• Type depends on value stored.
3. Built-in Data Types in Python
Python has following main data types:
A. Number Data Type
Used to store numeric values.
• int – whole numbers (10, -5)
• float – decimal numbers (10.5, 3.14)
• complex – numbers with imaginary part (2+3j)
B. Boolean Data Type
• Has only two values: True or False
• Used for decision making
C. Sequence Data Type
Stores multiple values in order.
• string – text data ("Hello")
• list – ordered, changeable ([1,2,3])
• tuple – ordered, not changeable (1,2,3)
D. Set Data Type
• Stores unique values
• Unordered collection
• Example: {1,2,3}
E. Mapping Data Type
• Stores data in key-value pairs
• Example: dictionary {"name":"Ram","age":18}
F. None Data Type
• Represents no value
• Example: a = None
4. Important Exam Points
• Python decides data type automatically
• List is mutable, tuple is immutable
• Dictionary stores data in key-value form
• Boolean values are True and False only