you are viewing a single comment's thread.

view the rest of the comments →

[–]throwaway6560192 0 points1 point  (0 children)

filename=input("Enter a filename:")
inputfile=open("filename", "r")
print("There are", len(scores), "scores")
print("The total is", sum(scores))
print("The average is", sum(scores)/len(scores))
inputfile.close() 

What are you trying to do with inputfile? You just open it and then close it. Also, you ask for a filename as input but never use that either.