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

What does this print? (code)

What does this print?

# print("one")
print("two")
  1. A.one two
  2. B.one
  3. C.two
  4. D.Nothing, because the file has a comment
Answer & explanation

Correct answer: two

The first line is a comment, so Python ignores it and runs only the second print.

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 →