InterviewSolution
Saved Bookmarks
| 1. |
WAP to calculate the average of given list of numbers. L = [10,20,30,40,50] using python |
|
Answer» Hey this is in python...nums = [10, 20, 30, 40, 50]sum = sum(nums)LENGTH = LEN(nums)avg = sum/lengthprint("AVERAGE = ", avg)# HOPE THIS HELPS!! |
|