Computer Science, asked by babitamadhesiya38, 3 months ago

Aman wants to create a program in python to calculate the average marks scored by jis friends. He wants to calculate average marks of his five friends , suggest, Aman an iterative statement that can use in program?

Answers

Answered by JagadishChandraBose
7

Answer:

for i in num:

   sum = sum + i

Explanation:

def average(num):

   sum = 0

   for i in num:

       sum = sum + i            

   avg = sum / len(num)

   return avg

print("The average is", average([65,53,41,57,75]))

Answered by maheepvasita
1

Answer:

Aman wants to create a program in python to calculate the average marks scored by his friends. He wants to calculate average marks of his fine friends. Suggest,Aman an iterative statement that he can use in the program

Similar questions