I'm a Python beginner and I can't get one thing working. See, our teacher told us to make a function to calculate average score of all exam scores, with undefined number of exams. It has to be in Python 2.7.
def main():
print("This program computes the average of multiple exam scores.")
scoresno = input("Enter number of exam scores: ")
for scores in range(scoresno):
scores = input("Enter exam score: ")
average = scores/(scoresno + 0.0)
print "Exam score average is:", (average)
main()
that obviously doesn't work, how can I get it to work?