← Quiz: Python Lists: all 15 questions
Quiz: Python Lists · Question 12 of 15
What does this print? (code)
What does this print?
marks = [72, 85, 64, 91]
print(max(marks) - min(marks), sum(marks) // len(marks))
- A.27 77
- B.91 64
- C.27 78
- D.19 78
Answer & explanation
Correct answer: 27 78
max is 91 and min is 64, so the range is 27. The sum is 312 and 312 // 4 = 78.
Can you get the rest right without peeking?
Take the timed Quiz: Python Lists quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →