← Quiz: Python Introduction: all 15 questions
Quiz: Python Introduction · Question 6 of 15
What does this print? (code)
What does this print?
print("Hi", "there", sep="-")
- A.Hi there
- B.Hi-there
- C.Hi-there-
- D.An error
Answer & explanation
Correct answer: Hi-there
sep replaces the default space between the items.
Can you get the rest right without peeking?
Take the timed Quiz: Python Introduction quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →