Day-1 - Setting Up Python Environment

If you’re starting your Python journey, the first step is to set up the environment properly. This ensures you can run Python programs smoothly and use powerful tools like pip for installing packages. Let’s walk through the setup step by step.


🐍 Step 1: Download Python

  1. Visit the official Python website: www.python.org

  2. Navigate to the Downloads section and grab the latest stable version for Windows.

  3. Run the downloaded .exe file and follow the installation wizard.

Pro Tip: While installing, make sure to check the box “Add Python to PATH” before proceeding. This saves you some manual setup later.


⚙️ Step 2: Configure Environment Variables

If you missed checking the PATH option during installation, you can set it up manually:

  1. Go to the folder where Python is installed. By default, it’s usually located at:

     C:\Users\<YourUser>\AppData\Local\Programs\Python\Python<version>
    
  2. Copy this path.

  3. Open Environment Variables (search "Environment Variables" in the Start Menu).

  4. Under User Variables, click EditNew, then paste the copied path.

  5. Also, add the Scripts folder path (example:

     C:\Users\<YourUser>\AppData\Local\Programs\Python\Python<version>\Scripts
    

🔍 Step 3: Verify the Installation

Once done, open Command Prompt and check if Python is installed correctly:

python --version

or

pip --version

If everything is set up, you should see the installed Python and pip versions. 🎉


To make coding easier, install a Python-friendly IDE. One of the most popular ones is PyCharm.

  • Download PyCharm from its official page.

  • It provides powerful tools like code auto-completion, debugging, and project management to make Python development seamless.


🎯 Hello World!

Setting up Python might feel tricky at first, but once done, you’re all set to explore the world of programming, data science, web development, and more. 🌍

Now open your IDE, create a simple helloWorld.py file, and run your first Python program:

print("Hello, World! 🚀")

🖨️ Understanding the print() Function

In Python, the print() function is used to display output on the console.

For example:

print("Hello, World! 🚀")

🔎 Explanation:

  • print → is a built-in function in Python that outputs information to the screen.

  • Text inside double quotes (" ") is treated as a string (text data).

  • Whatever is placed between the quotes will be printed exactly as it is.

So, the above code will display:

Hello, World! 🚀

Welcome aboard—your Python journey has officially begun!

0
Subscribe to my newsletter

Read articles from Raviteja Vaddamani directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Raviteja Vaddamani
Raviteja Vaddamani