Python sample programs – Part 1
1. Calculate the Average of Numbers in a Given List count=int(input("Average of how many numbers do you want to find?")) a=[] for i in range(0,count): number=int(input("Enter number: ")) a.append(number) average=sum(a)/count print("Average of numbers is: ",average) Output: Average of how many numbers do you want to find?5 Enter number: 2 Enter number: 3 Enter
Read more