A program is a list of instructions
Python reads your code from top to bottom and does what each line says. The first instruction almost everyone learns is print() — it shows whatever you put inside the parentheses.
print("Hello, world!")
Text lives inside quotes
Anything wrapped in quotes is a string: text Python treats as characters instead of code. Write print(Hello) with no quotes and Python goes looking for something named Hello, does not find it, and stops with a NameError.
Errors are part of the job
When a line does not make sense, Python prints a traceback. Read the last line first — that is the real message. Programmers create errors all day long; the skill is reading them, not avoiding them.