🐍 Python 2026 › Lesson 1: Introduction to Python in Visual Studio 2026
Lesson 1 of 30

Introduction to Python in Visual Studio 2026

Getting started with Python, installing the tools, and writing your first program.

What is Python?

Python is a high-level, interpreted programming language created by Guido van Rossum and first released in 1991. It emphasises code readability and simplicity, making it ideal for beginners while remaining powerful enough for professional software, data science, machine learning, and web development.

In 2026, Python 3.13 is the current stable release and the version we use throughout this tutorial.

Installing Python 3.13

  1. Visit python.org/downloads and download the Python 3.13 installer for Windows.
  2. Run the installer. Tick "Add Python to PATH" before clicking Install Now.
  3. Verify: open a Command Prompt and type python --version. You should see Python 3.13.x.

Installing Visual Studio 2026

Visual Studio 2026 is Microsoft's flagship IDE and provides excellent Python support through its Python workload:

  1. Download the Visual Studio 2026 Community installer (free) from visualstudio.microsoft.com.
  2. In the Workloads screen, select "Python development".
  3. Complete the installation (approx. 2–4 GB).
ℹ️ Python Workload
The Python workload installs the Python language service, debugger, IntelliSense, virtual environment manager, and Jupyter notebook support — everything you need in one click.

Creating Your First Python Project

  1. Open Visual Studio 2026 and choose Create a new project.
  2. Search for "Python Application" and select it.
  3. Name your project HelloPython and choose a save location.
  4. Click Create.

Your First Program

Visual Studio creates a file called HelloPython.py. Replace its contents with:

# My first Python program
print("Hello, World!")
print("Welcome to Python in Visual Studio 2026")

Press F5 (or click the green ▶ Run button). The Output window at the bottom will display:

Hello, World!
Welcome to Python in Visual Studio 2026
✅ Tip — GitHub Copilot
Visual Studio 2026 ships with GitHub Copilot. After typing a comment like # print a greeting, Copilot will suggest the print statement automatically. Press Tab to accept.