Module 2 · Basics · Lesson 9 of 9
Section quiz
Time to check what stuck. Pick an answer for each question — you'll see straight away whether it's right, with a quick explanation. No pressure: you can retry as many times as you like.
1
In the call below, what is "Hello"?
print("Hello")2
What happens when you run this line?
print("a") print("b")3
What does \n do inside a string?
print("one\ntwo")4
What does this print?
print("Python", "is", "fun")5
Which call outputs x-y?
That's the whole of print — arguments, one instruction per line, escape characters, and the sep and end keywords. Next we'll start giving our programs memory with variables.