Kids Coding
Print and Talk
print() shows text. Quotes wrap words. You can print more than one line.
One line, then another
Each print() makes a new line. You can print as many times as you want.
Three lines
print("Cats")
print("Dogs")
print("Foxes")print() adds a new line each time, so two print lines land on two lines. Want a blank line between them? An empty print() does exactly that.
Quotes wrap words
Use double quotes "like this" or single quotes 'like this'. Pick one style for a string and close it the same way.
Both kinds of quotes
print("I like pizza")
print('I like pasta')Empty lines
print() with nothing inside still prints a blank line. That is useful when you want space.
A gap
print("Before")
print()
print("After")Real life
A packing list for a sleepover.
Each print is one line on the list. You can read it back before you leave.
Sleepover bag
print("Toothbrush")
print("Pajamas")
print("Book")Change one word. Run it. That is how this idea shows up outside the lesson.
Try it
Exercise 1: Print your favourite colour, then a blank line, then your favourite animal.
Show solution
print("teal")
print()
print("fox")