FUNDAMENTALS OF COMPUTER

DATABASE FUNDAMENTALS

HOW TO INSERT DELETE COLUMNS ROWS IN EXCEL

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the name of the function that adds up a list of numbers?
A
SUM
B
AVERAGE
C
ALL
D
ADDUP
Explanation: 

Detailed explanation-1: -The sum() function returns a number, the sum of all items in an iterable.

Detailed explanation-2: -Python’s built-in function sum() is an efficient and Pythonic way to sum a list of numeric values. Adding several numbers together is a common intermediate step in many computations, so sum() is a pretty handy tool for a Python programmer.

Detailed explanation-3: -The sum function is used to find the sum of all the items in the given iterable.

Detailed explanation-4: -python allows the user to read the input. We will use the sum function to add to numbers but here is one trick to use it i.e. insert the numbers in the list, and then pass the list in the sum method. Sum method will give you the result by adding the two numbers.

There is 1 question to complete.