Skip to main content

Python Installation and First Program (Step-by-Step Beginner Guide)

 ✍️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

  1. Open your browser

  2. Go to 👉 https://www.python.org

  3. 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

popular

What Is Python Programming? Features, Uses and Career Scope.

  ✍️ Introduction Python is one of the most popular and beginner-friendly programming languages in the world today. It is widely used for web development, data science, artificial intelligence, automation, and software development. Because of its simple syntax and powerful features, Python is an excellent choice for students, beginners, and professionals. In this article, you will learn what Python programming is, its key features, real-life uses, and the career opportunities it offers. 🧠 What Is Python Programming? Python is a high-level, interpreted programming language created to make coding easy and readable. It allows developers to write programs using simple English-like statements, which makes it ideal for beginners. Python supports multiple programming styles such as procedural, object-oriented, and functional programming. ⭐ Features of Python Easy to learn and understand Simple and readable syntax Interpreted language Platform independent Large standard l...

what is Python Date and Time ? Complete Guide with Examples:

  ✍️ Introduction Python provides powerful tools to work with dates and times . The most commonly used module is datetime . The datetime module allows Python programs to create, manipulate, format, and perform calculations with dates and times easily. Date and time handling is used in: Logging systems Attendance & billing systems Data analysis Real-time applications How To Import Date and Time Module : In Python, the datetime module is used to work with dates , times , and date–time combinations . It is part of Python’s standard library, so no installation is required. You can import it in different ways depending on your need. import datetime Get Current Date and Time: This code obtains the current system date and time as a single datetime object using the datetime module. Example: import datetime now = datetime.datetime.now() print (now) Output: 2026-02-13 11:25:53.445827 "Code executed successfully"  Get Only Date: This code retrieves t...

Features of Python Programming Language Explained with Examples

✍️ Introduction Python is one of the most popular programming languages because of its powerful and easy-to-use features. It is designed to make programming simple, readable, and efficient. Python is widely used by beginners as well as professionals due to its flexibility and strong community support. In this article, we will discuss the main features of Python programming language in simple English with easy examples. 🧠 What Are Features of Python? Features of Python are the special characteristics that make it different from other programming languages. These features help programmers write clean, readable, and efficient code with less effort. ⭐ Key Features of Python Programming Language 1️⃣ Easy to Learn and Easy to Use Python has a simple syntax that is close to the English language. This makes it very easy for beginners to learn and understand programming concepts. Example: print("Hello, World!") 2️⃣ Interpreted Language Python is an interpreted language, which me...

Python Operators: Types with Examples

 ✍️Introduction In Python, operators are symbols used to perform operations on variables and values. Operators help us do calculations, comparisons, and logical decisions in programs. In this article, you will learn: • What Python operators are • Types of Python operators • Simple examples for each type