002. Kaise install kare python

Prathmesh Mayekar
0

 Python ko install karne ke liye neeche kuch steps hain: 


1. Pahla step hai Python ki official website par jaana. Uska URL hai "python.org".

2. Website par "Downloads" section ko dhoondein aur latest Python version select karein. Ab "Download" button par click karein.

3. Aapko Windows, Mac, ya Linux ke liye Python version milega. Apne operating system ke according download karein.

4. Download hone ke baad, installer ko double-click karein aur Python installation process start karein.

5. Installer instructions follow karein, aur "Install Now" ya "Next" jaise options par click karein.

6. Installation complete hone ke baad, command prompt ya terminal open karein aur "python --version" command enter karein. Agar Python version display hota hai, toh aapka installation successful hua hai!

7. Installation ke baad, apne computer par command prompt ya terminal open karein. "python" type karein aur Enter dabayein. Python interpreter shuru ho jayega aur aapko version aur ">>>" prompt dikhega.

8. Hello, Python!: Ab Python ko "Hello" bole. print("Hello, Python!") type karein aur Enter dabayein. Python code ko execute karega aur "Hello, Python!" output mein dikhayega.


"Hello World" ko ek Python file mein print karne ke liye, in steps ko follow karein:


Step 1: Text editor (jaise Windows par Notepad ya macOS par TextEdit) khol kar ek naya file create karein.


Step 2: File mein neeche diya gaya code type karein:

# hello_world.py; 
print("Hello, World!")


Step 3: File ko ".py" extension ke saath save karein. For example, "hello_world.py" naam se save kar sakte hain.


Step 4: Command prompt ya terminal ko apne computer par open karein.


Step 5: `cd` command (Windows ke liye) ya `cd` aur `ls` commands (macOS/Linux ke liye) ka istemal karke uss directory mein jaayein jahan aapne "hello_world.py" file save ki hai.


Step 6: Neeche di gayi command type karein aur Enter dabayein:

python hello_world.py


Step 7: Aapko command prompt ya terminal mein "Hello, World!" ka output dikhega.


Badhaai ho! Aapne successfully "Hello, World!" ko ek Python file mein print kar liya hai. Ab aap aur complex Python programs create karke coding ki duniya mein maze kar sakte hain! Happy coding! 😄

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Accept !