# Python Notes
## 1. Introduction
Python is a high-level, interpreted programming language known for its simplicity and readability.
## 2. Variables
Variables store data:
```
x = 10
name = "Faizan"
```
## 3. Data Types
- int
- float
- string
- boolean
- list
- tuple
- dictionary
## 4. Conditions
```
if x > 5:
print("Greater")
else:
print("Smaller")
```
## 5. Loops
### For loop:
```
for i in range(5):
print(i)
```
### While loop:
```
i=0
while i < 5:
print(i)
i += 1
```
## 6. Functions
```
def add(a, b):
return a + b
```
## 7. Lists
```
fruits = ["apple", "banana", "mango"]
```
## 8. Dictionaries
```
person = {"name": "Faizan", "age": 22}
```
## 9. Classes
```
class Car:
def __init__(self, brand):
[Link] = brand
```
## 10. File Handling
```
with open("[Link]", "r") as f:
data = [Link]()
```
## 11. Modules
```
import math
print([Link](16))
```
## 12. Conclusion
Python is powerful and easy to learn. Practice daily to improve your skills.