LearnFrenzy
Sign in Take a free test

Python Built-in Functions · Built-in Functions MCQ · Question 5

The start value of sum() Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 5 Back to Exercise

What is sum([1, 2, 3], 10)?

  • A 6
  • B [1, 2, 3, 10]
  • C TypeError
  • D 16 Correct
Correct Answer: Option D

The second argument is the starting value of the total.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links