100 Days of Code: Python - Day 1 Cheat Sheet
Why Python?
Simple & Readable - English jaisi syntax
Cross-Platform - Windows, MacOS, Linux sabhi par chalta hai
Free & Open Source
Massive Ecosystem - Web (Flask, Django), Data Science (Pandas, NumPy), Machine Learning (TensorFlow,
PyTorch)
Integration Friendly - Python ko C, C++, Java se jod sakte hain
Core Concept: What is Programming?
- Programming = Computer ko nirdesh dena (Instructions)
- Jaise hum English ya Hindi mein baat karte hain, waise hi hum Python mein computer se baat karte hain
- Python ek aisa madhyam hai jisse hum computer ko samjha sakte hain
What is REPL?
REPL = Read - Evaluate - Print - Loop
- Python ka interactive mode
- Replit jaise platform mein yahi base hota hai
- Code turant chalao aur output dekho
Python Setup Tips
1. Visit: https://www.python.org
2. Windows users: Install karte samay "Add to PATH" zarur check karein
3. Installation Check:
python --version
ya
python3 --version
4. IDE Suggestion: Replit.com (Online, Fast, No installation needed)
First Python Code Snippets
# 1. Hello, World!
100 Days of Code: Python - Day 1 Cheat Sheet
print("Hello, World!")
# 2. Numbers & Math
print(5) # Output: 5
print(23453453 * 56456) # Output: Big multiplication
# 3. Exiting REPL
exit() # Exits Python shell
Day 1 Takeaways
- Python kya hai aur kyon yeh sabse aasan bhasha mani jaati hai - samjha
- Python ko install karna aur run karna seekha
- REPL ka istemal jaana
- Replit jaise tool mein coding ki shuruaat ki
Pro Tip
Is note ko rozana revise karein.
Sample codes ko change karke khud practice karein.
Jitna aap khud code likhenge, utni jaldi Python mein mastery aayegi!
Next Topic (Day 2): Variables, Data Types, aur Basic Input/Output