Getting Started with Python on Windows
A beginner-friendly guide to installing Python on Windows and creating your first project.
Getting Started with Python on Windows
Welcome to the beginner's guide to installing Python on a Windows system and creating your first project. Let's get started!
Step 1: Download Python
- Visit the Python website: Go to the official Python website.
- Download Python: On the homepage, you will see a button that says "Download Python 3.x.x". Click on it to download the latest version of Python.

Step 2: Install Python
- Run the installer: Locate the downloaded installer file (usually in your Downloads folder) and double-click to run it.
- Customize installation:
- Make sure to check the box that says "Add Python 3.x to PATH".
- Click on "Customize installation" if you want to select optional features, but the default options are fine for most users.
- Click "Next" and then "Install".

- Wait for the installation to complete: This might take a few minutes. Once done, click on "Close".
Step 3: Verify the Installation
- Open Command Prompt: Press
Win + R, typecmd, and press Enter. - Check Python version: Type
python --versionand press Enter. You should see the version of Python you installed.
python --version

Step 4: Install an IDE (Optional)
While you can write Python code using any text editor, an Integrated Development Environment (IDE) can make the process easier. One popular IDE for Python is PyCharm.
- Download PyCharm: Go to the PyCharm website and download the Community edition.
- Install PyCharm: Run the installer and follow the instructions.
Step 5: Write Your First Python Program
Let's write a simple Python program that prints "Hello, World!".
- Open your IDE (PyCharm or any text editor like Notepad).
- Create a new file: Save it with a
.pyextension, for example,hello.py. - Write the code: Type the following code into your file:
print("Hello, World!")
- Save the file.
Step 6: Run Your First Python Program
- Open Command Prompt: If it's not already open, press
Win + R, typecmd, and press Enter. - Navigate to your file's directory: Use the
cdcommand to change directories. For example, if your file is on the Desktop:
cd Desktop
- Run the program: Type
python hello.pyand press Enter. You should see the output:
Hello, World!

Congratulations! You've successfully installed Python and run your first Python program. You're now ready to start exploring more about Python programming.
Next Steps
- Explore Python's official documentation.
- Try more tutorials and build simple projects to enhance your skills.
- Join Python communities and forums for support and networking.
Happy coding!