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
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
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
Computer Science,
3 months ago
Social Sciences,
3 months ago
Math,
3 months ago
History,
7 months ago
English,
7 months ago
Science,
1 year ago
English,
1 year ago