✍️Introduction
Before learning Python programming, the first step is to install Python on your computer.
Python installation is very easy and works on Windows, Linux, and macOS.
In this article, you will learn:
- How to install Python
- How to check Python installation
- How to write your first Python program
What is Python Installation?
Python installation means setting up Python software on your computer so that you can write and run Python programs.
Python is free and available on the official Python website.
🖥️ Python Installation on Windows (Step-by-Step)
Step 1: Download Python
Open your browser
Go to 👉 https://www.python.org
Click on Download Python (Latest Version)
Step 2: Run the Installer
Open the downloaded file
✔️ IMPORTANT: Tick the checkbox
☑ Add Python to PATH
Click on Install Now
⏳ Installation will take a few minutes.
Step 3: Verify Python Installation
1) Open Command Prompt (CMD)
2) Type:
python --version
Note: If Python is installed correctly, you will see:
Python 3.x.x
✅ Python is successfully installed.
🧑💻 Python Installation on Linux
Most Linux systems already have Python installed.
Check using:
python3 --version
If not installed, use:
sudo apt install python3
🍎 Python Installation on macOS
1. Download Python from python.org
2. Run the installer
3. Verify using:
python3 --version
▶️ Writing Your First Python Program
Step 1: Open Python IDLE
• After installation, search for IDLE
OR
• Open CMD and type:
python
Step 2: Write First Program
Type the following code:
print("Hello, World!")
Step 3: Run the Program
Press Enter
Output will be:
Hello, World!
🎉 Congratulations! You have written your first Python program.
📌 Why “Hello World” Program is Important?
• Confirms Python is installed correctly
• Helps beginners understand syntax
• First step into programming world
Common Installation Errors & Solutions
❌ Python Not Recognized
Error:
'python' is not recognized as an internal or external command
✔️ Solution:
• Reinstall Python
• Tick Add Python to PATH
Conclusion
Python installation is simple and beginner-friendly.
Once installed, you can start learning Python programming easily.
Python is the best first programming language for students and beginners.
💬 Let’s Interact!
Did you successfully install Python?
Comment YES or NO below 👇
If NO, tell me your problem — I will help you 👍
📌 Related Articles:
Comments
Post a Comment