🟢 Beginner  ·  Lesson 02

Python Setup: Windows, VS Code और IDLE

Python Installation और Setup

Python programs लिखने से पहले computer में Python सही तरीके से install होना चाहिए। Setup का मतलब है Python install करना, version check करना, PATH set करना, editor choose करना और first .py file run करना।

Installation Steps

StepAction
1Python 3 download करें।
2Installation के time Add Python to PATH tick करें।
3Command Prompt/Terminal में python --version check करें।
4pip --version से package manager check करें।
5VS Code और Python extension install करें।

Important Commands

Terminal Commands
python --version
pip --version
python hello.py

hello.py बनाकर Run करें

hello.py
print("Hello from Python")
Hello from Python

Common Setup Problems

  • python is not recognized: PATH सही set नहीं है।
  • pip is not recognized: pip/PATH issue है।
  • File hello.py.txt बन गई: इसे .py extension से save करें।
  • Wrong folder में command run करना: पहले cd foldername use करें।

सारांश

Correct setup में Python 3, pip, working terminal command और VS Code जैसा editor होना चाहिए। hello.py run हो जाए तो Python learning start कर सकते हैं।

← Back to Python Tutorial
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

💻 लाइव कोड एडिटर

इस पेज के प्रोग्राम यहीं तैयार हैं — चलाएँ, बदलें और सीखें। कुछ भी इंस्टॉल किए बिना।
OneCompiler द्वारा संचालित। कोड एडिटर में अपने आप आ जाता है — Run दबाकर आउटपुट देखें। अगर एडिटर न खुले तो नए टैब में खोलें.