Python Level 1: Introduction & Basic Syntax

Goal of this Level

You will learn to:

Step 1: Install Python

Go to the official Python website: https://www.python.org/downloads

Download the latest version and, on Windows, check "Add Python to PATH".

Check installation :

python --version

Step 2: Set up an Editor

Step 3: print() – Display Text

print("Hello World")
print(5 + 3)

Explanation:

Step 4: input() – User Input

name = input("What is your name?")
print("Hello,", name)

Explanation:

Step 5: Writing Comments

# Single-line comment
'''
Multi-line
comment
'''

Explanation:

Practice Example

name = input("What is your name?")
alter = int(input("How old are you?"))
print("Hello,", name + "!")
print("You are", alter, "years old")

Explanation:

Your Task

What is your name? Max
What is your favorite movie? The Matrix
Hello Max! Your favorite movie is The Matrix