Module 1

print()

Your first superpower tool.

The most used instruction in beginner Python

print is a function. A function is a small machine: you give it something, and it does a job for you. print's job is to show information on the screen.

PythonCalling the print function.
print("Hello, scientist!")
Hello, scientist!

The word print is the function. Everything inside the parentheses is what we want to show. The parentheses and quotes are part of Python's grammar.

The print function machine
"Hello, scientist!"print( )Hello, scientist!
It takes "Hello, scientist!" and shows it on screen.
Your task

Display a message

  • Use print to display the message: Hello, scientist!
Remember

print( ... ) shows whatever you put inside the parentheses. It is the simplest way to get Python to talk to you.