🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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="-")
  1. A.Hi there
  2. B.Hi-there
  3. C.Hi-there-
  4. 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 →