Lesson 1 of 15

Hello Python

Hello Python

Python is a high-level, dynamically typed language famous for its readable syntax. There are no semicolons, no braces — indentation defines structure.

print()

print("Hello, world!")
print(42)
print(3.14)
print(True)

Variables

Python infers types automatically. No declarations needed.

name = "Alice"
age = 30
height = 1.75
active = True

f-strings

The cleanest way to embed variables in strings (Python 3.6+):

name = "Alice"
age = 30
print(f"My name is {name} and I am {age} years old.")

Multiple Values

print() accepts multiple arguments separated by commas, joined with spaces by default:

print("Score:", 42, "/ 100")
# Score: 42 / 100

Your Task

Implement greet(name) that prints Hello, {name}! on one line.

Pyodide loading...
Loading...
Click "Run" to execute your code.