Introduction to Python Programming in IDLE: Beginners Guide | Python परिचय

Learn Python step-by-step using IDLE in simple English and Hindi. Live examples, and best practices for your coding journey!

1. Focus Keywords

  • Python IDLE tutorial
  • learn Python IDLE
  • Python programming beginners
  • Python परिचय
  • IDLE में कोडिंग

Introduction to Python in IDLE / IDLE में Python का परिचय

दोस्तों, इस पेज पर हम सीखेंगे कि Python को IDLE (Integrated Development and Learning Environment) में कैसे इंस्टॉल, सेटअप और इस्तेमाल करें। हम step-by-step live examples देखेंगे, ताकि आप IDE की पूरी ताकत समझ सकें ।


What Is IDLE and Why Use It? / IDLE क्या है और क्यों इस्तेमाल करें?

IDLE, Python का official development environment है जो simple interface, built-in editor, और interactive shell प्रदान करता है।

  • Beginners के लिए ज्यादा आसान
  • कोई extra configuration नहीं चाहिए
  • Code write करते ही run करके output देख सकते हैं

Step 1: Install Python with IDLE / Python और IDLE कैसे इंस्टॉल करें?

     Click on the Link for Python Installation:  👇
                                    Python Installation Video
  1. python.org पर जाएं और latest Python version (Windows/Mac/Linux) डाउनलोड करें।
  2. Installer खोलें, “Add Python to PATH” जरूर चेक करें।
  3. Finish पर क्लिक करें—IDLE अपने आप इंस्टॉल हो जाएगा।

Step 2: Launch IDLE Shell / IDLE Shell कैसे खोलें?

  1. Windows में Start → Python 3.x → IDLE (Python 3.x Shell)
  2. Mac/Linux में Terminal खोलें, टाइप करें:
    idle3
    
  3. IDLE Shell खुलते ही आपको एक prompt दिखेगा:
    >>>  
    

Step 3: Your First Program in IDLE / IDLE में पहला प्रोग्राम

  1. Shell में File → New File पर क्लिक करें।
  2. नई window में code लिखें:
    print("Hello, World!")
    
  3. File → Save As → hello.py नाम से सेव करें।
  4. Run → Run Module (या F5) दबाएं।
  5. Shell में output दिखेगा:
    Hello, World!  
    

Step 4: Variables & Data Types in IDLE / IDLE में वेरिएबल्स और डेटा टाइप्स

न्यू file में लिखें और Run करें:

# integer
age = 25
print("Age:", age)

# float
price = 99.99
print("Price:", price)

# string
name = "Amit"
print("Name:", name)

# boolean
is_student = True
print("Is Student:", is_student)

हर Run पर IDLE Shell में result तुरंत दिखाई देगा।


Step 5: Control Flow (if–else) / नियंत्रण प्रवाह

age = int(input("Enter your age: "))

if age >= 18:
    print("आप vote कर सकते हैं")
else:
    print("आप vote नहीं कर सकते")

IDLE Shell से input दें और instantaneous feedback लें।


Step 6: Loops in IDLE / लूप्स

# for loop example
for i in range(1, 6):
    print("Number:", i)

# while loop example
count = 1
while count <= 5:
    print("Count is", count)
    count += 1

हर बार Run करने पर IDLE Shell में पूरा sequence दिखेगा।


Step 7: Functions in IDLE / फ़ंक्शंस

def greet(name):
    return "नमस्ते, " + name + "!"

message = greet("Sita")
print(message)

Save और F5 से Run करके देखें कि कैसे function काम करता है।


Conclusion / निष्कर्ष

अब आपने सीखा कि कैसे IDLE में Python सेटअप करें, code लिखें, और run करके तुरंत output देखें।
Practice बढ़ाते जाएँ, छोटे प्रोजेक्ट्स बनाएं ।

अगर यह गाइड पसंद आई हो, तो ब्लॉग सब्सक्राइब करें, कमेंट करें और सोशल मीडिया पर शेयर ज़रूर करें!




Comments

Popular posts from this blog

O-Level M1 + M2 Test Paper | NIELIT Practice

IoT Part 3: How Smart Devices Talk (Communication Models)