Module 0
Reading simple Python
Learning to look at code before running it.
Practice reading before running
Before you run code, try to predict what it will do. This is one of the most useful habits in programming. Look at this line:
PythonCan you guess the output?
print("Hello")→ Hello
The word print tells Python to display something. The text inside the quotes is what gets displayed. The quotes themselves do not appear in the output.
Predict first
What will Python display when you run this code?
print("Hello")PythonNumbers do not need quotes.
print(42)
→ 42
What is the output of print("DNA")?