Answer
Code
Work Step by Step
myfile = open('score.txt', 'w')
student = int(input("Enter the number of students: "))
maxgrade = 0
grade = 0
for x in range (student):
print("Student ", x+1)
grade = int(input("Enter student's score: \n"))
myfile.write(str(grade))
if grade > maxgrade:
maxgrade = grade
print("Max score = ", maxgrade)
myfile.close()