🎙 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 13 of 15

What does this print? (code)

What does this print?

print("A", end="")
print("B")
  1. A.AB
  2. B.A B
  3. C.A
  4. D.B
Answer & explanation

Correct answer: AB

end="" replaces the usual new line after A with nothing, so B is printed right after it.

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 →