Basic Python Notes (Hinglish)
1. Python Kya Hai?
Python ek high-level, easy-to-read programming language hai. Beginners ke liye best hai.
2. Python Install Kaise Karein?
Python official website se download hota hai. Windows, Mac, Linux sab support karta hai.
3. First Python Program
print("Hello World")
4. Variables
Variable data store karne ke liye hota hai.
x = 10
name = "Saify"
5. Data Types
int – number (10)
float – decimal (10.5)
str – text ("Hello")
bool – True / False
6. Input & Output
name = input("Apna naam daalo: ")
print(name)
7. Conditions (if-else)
if age > 18:
print("Adult")
else:
print("Minor")
8. Loops
for i in range(5):
print(i)
9. Functions
def greet():
print("Hello")
10. Lists
numbers = [1,2,3,4]
11. Tuples
data = (1,2,3)
12. Dictionaries
student = {"name":"Saify","age":25}
13. Comments
# Ye comment hai
14. Conclusion
Python simple hai, powerful hai, aur career ke liye best option hai.