Skip to content

Lesson 1 · print and text

Hello, café

  1. 1. Story
  2. 2. Guess
  3. 3. Your turn

KaiTomorrow the café opens. I need a sign on the little screen by the door.

EllaPython can show it for you. One line at a time.

SitaraI’ll give you hints when you want them. You write the code, and you decide.

print( ) shows text on the screen. Read the example, then run it.

  1. 1. print( ) shows whatever is inside the brackets
  2. 2. Text goes inside quotes, like "hello"
  3. 3. Each print starts a new line
cafe.py

Try: Change the words to your own welcome, then run it again.

Read · about 1 minute

The basics, in plain words

print( ) shows text on the screen. Read the example, then run it.

print("Good morning!")
print("Latte is ready")
  • print( ) shows whatever is inside the brackets
  • Text goes inside quotes, like "hello"
  • Each print starts a new line
print( )
Shows whatever is inside the brackets on the screen.
"text"
Words in quotes are called a string. Python shows them exactly as written.

Common slip: Forgetting a quote or a bracket. Every opening ( or " needs a closing one.

Read all twelve Python basics with Sitara →
Next · lesson 2 · about 8 minutesVariables, little jarsYou will learn variables and numbers.Next lesson →