🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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))
  1. A.27 77
  2. B.91 64
  3. C.27 78
  4. 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 →