🏠 Home 📚 Chapters
HomeChapters › Chapter 01
CHAPTER 01

🐍 Python क्या है?

Introduction, Installation, और पहला Program हिंदी में

Advertisement

Python क्या है?

Python एक बहुत आसान और powerful programming language है। इसे Guido van Rossum ने 1991 में बनाया था।

Python का नाम एक TV show "Monty Python's Flying Circus" से आया है — किसी साँप से नहीं! 😄

आज Python दुनिया की top 3 programming languages में है। Google, NASA, Netflix, Instagram सब Python use करते हैं।

✅ आसान Syntax

English जैसा readable code। Beginners के लिए perfect।

🌍 हर जगह Use

Web, AI, Data Science, Automation — सब कुछ।

🆓 Free & Open Source

बिल्कुल मुफ्त। कहीं से भी download करें।

💼 Jobs

सबसे ज्यादा demand वाली language में से एक।

Python Install कैसे करें?

Step 1: python.org पर जाएं
Step 2: "Download Python" button पर click करें (latest version)
Step 3: Install करते वक्त "Add Python to PATH" ✅ जरूर check करें
Step 4: VS Code या IDLE editor install करें
Step 5: Terminal/CMD में python --version type करके check करें
💡 Online भी चला सकते हैं! अगर install नहीं करना तो replit.com या Google Colab पर free में Python चला सकते हैं।

पहला Python Program

Programming में पहला program हमेशा "Hello World" होता है। आइए Python में लिखें!
python — hello.py
# यह मेरा पहला Python program है
# # से शुरू होने वाली line comment होती है

print("नमस्ते दुनिया! 🙏")
print("Hello, World!")
print("Python सीखना शुरू हो गया!")
OUTPUT
नमस्ते दुनिया! 🙏
Hello, World!
Python सीखना शुरू हो गया!
💡 print() function screen पर कुछ भी दिखाने के लिए use होता है। यह Python का सबसे basic और important function है।
Advertisement

Comments (टिप्पणियाँ)

Comments वो lines होती हैं जो Python run नहीं करती। ये आपके notes होते हैं। Comments से code समझने में help होती है।
python
# यह single line comment है (# से शुरू)
print("यह चलेगा")  # यह भी comment है (line के अंत में)

# यह line नहीं चलेगी:
# print("यह print नहीं होगा")

"""
यह multi-line comment है।
इसे triple quotes से बनाते हैं।
इसमें कई lines हो सकती हैं।
इसे docstring भी कहते हैं।
"""

print("Program जारी है!")

Python की खासियतें

FeaturePythonOther Languages
Syntax (कोड)बहुत आसान, English जैसाComplex और confusing
Lines of Codeकम lines में ज्यादा कामज्यादा lines चाहिए
सीखने की speedतेज — weeks में basicsमहीनों लग सकते हैं
UseAI, Web, Data Science, AutomationLimited uses
Communityबहुत बड़ी, helpfulSmaller

🎯 QUICK QUIZ — Chapter 01

Python में screen पर text दिखाने के लिए कौनसा function use होता है?
Advertisement
🏠 Home अगला →