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

What does this print? (code)

What does this print?

print("Sum:", 4 + 6)
  1. A.Sum: 4 + 6
  2. B.Sum: 10
  3. C.Sum:10
  4. D.Error
Answer & explanation

Correct answer: Sum: 10

Python calculates 4 + 6 = 10, and print adds a space between "Sum:" and 10.

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 →