Python Hello World

What Is Python?

Python is one of the easiest and most popular programming languages in the world. It is used for:

Python is loved because its code looks almost like plain English. Perfect for beginners.

Your First Python Program

The “Hello World” program is the classic first step. It prints text to the screen.

print("Hello, World!")
      

Explanation:

How to Run Python Code

There are two easy ways:

Method 1: Using Python Installed Locally

  1. Download Python from python.org
  2. Install it (check “Add to PATH”)
  3. Open Notepad
  4. Paste this code:
    print("Hello, World!")
  5. Save as hello.py
  6. Open CMD and run:
    python hello.py

Method 2: Using an Online Python Editor

You can also use:

Just paste the same code and click Run.

Printing Multiple Lines

print("Hello!")
print("Welcome to Python.")
print("This is your second tutorial.")
      

Variables in Python (Super Simple)

Variables store data. Example:

name = "Kaloyan"
age = 12

print("My name is", name)
print("I am", age, "years old")
      

This is readable and extremely friendly for beginners.

What’s Next?

In the next tutorial, we start learning real web development with HTML. After that, you’ll be able to build your first webpage.