(Complete Revision Notes)
1. Introduction to Python
Python is a high-level, interpreted programming language used for web development, data
science, automation, and artificial intelligence. It is known for its simple syntax and readability.
Key Features:
• Easy to learn and write
• Interpreted language (no compilation needed)
• Object-oriented and functional support
• Large standard library
2. Variables and Data Types
Variables
A variable is a container used to store data values.
x = 10
name = "Ali"
Common Data Types:
• Integer → 10, 20, 30
• Float → 3.14, 5.6
• String → "Hello"
• Boolean → True / False
3. Operators in Python
Arithmetic Operators:
• + Addition