← 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")
- A.AB
- B.A B
- C.A
- 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 →