Computer Science, asked by asiyaarif, 9 months ago

Write a python program to find average of list of numbers entered through your keyboard

Answers

Answered by charanreddy2307
8

Explanation:

num = int(input('How many numbers: '))for n in range(num):

numbers = int(input('Enter number '))

lst.append(numbers)print("Maximum element in the list is :", max(lst), "\nMinimum element in the list is :", min(lst))

n=int(input("Enter the number of elements to be inserted: ")) a=[] for i in range(0,n): elem=int(input("Enter element: ")) a.append(elem) avg=sum(a)/n print("Average of elements in the list",round(avg,2))

follow me

mark as brainlist number

Answered by surendrasahoo
7

Python program to find the average of number in a given list

  • take the number of element to be stored in the list as input

  • use a for loop to input elements into the list
  • calculate the total sum of number in the list
  • divide the sum by total number of element in the list

Here is your answer

HOPE IT IS HELPFUL .....

Similar questions