Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 37)
37.
What is the purpose of the sum() function?
Computes the sum of elements in an iterable
Checks if a variable is of a certain type
Converts a list to uppercase
Sorts elements of a list in ascending order
Answer: Option
Explanation:
The sum() function is used to compute the sum of elements in an iterable, such as a list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.