SkillByAIOpen interactive version →

Lesson 3 / 49

Hello, World!

Write and run your first Python program, and use f-strings to insert values into text.

The program

Save as hello.py, then run python3 hello.py (macOS/Linux) or py hello.py (Windows).

print("Hello, World!")

Output:

Hello, World!

f-strings

The modern way to build text with values.

name = "Ada"
print(f"Hello, {name}!")

Output:

Hello, Ada!

vs C

No #include, no main, no semicolons, no compile step.