Coding for All
Lesson 1: Hello, World!
Hello, World! Make the computer say hello, every programmer's first program.
1print("Hello, world!")
Terminal
$ python3 main.py
Hello, world!
Every line, explained
print("Hello, world!")
print(...) shows whatever is inside its round brackets in the terminal, then moves to a new line. It is written all in lowercase, and it needs both brackets. The text goes inside quotes: "Hello, world!" is a string, a piece of text. Printing it is traditionally the very first program anyone writes!