Lesson 3 / 47
Hello, World!
One line, plus the modern way to insert values.
The program
Save as hello.py, then python3 hello.py.
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.