← 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)
- A.Sum: 4 + 6
- B.Sum: 10
- C.Sum:10
- 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 →