Q:

Write a Python program to round every number of a given list of numbers and print the total sum multiplied by the length of the list

0

Write a Python program to round every number of a given list of numbers and print the total sum multiplied by the length of the list.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

nums = [22.4, 4.0, -16.22, -9.10, 11.00, -12.22, 14.20, -5.20, 17.50]
print("Original list: ", nums)
print("Result:")
lenght=len(nums)
print(sum(list(map(round,nums))* lenght)) 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now