Answer to Question #298249 in Python for Bidek roka

Question #298249

Write a function that TAKES a list of numbers and RETURNS the addition of all its element

1
Expert's answer
2022-02-15T13:58:48-0500
def numbersSum(numbers):
    result=0
    for n in numbers:
        result+=n
    return result


numbers=[int(x) for x in input("Enter numbers: ").split(',')]
print(f"Sum: {numbersSum(numbers)}")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS