Question: 1 4 . 2 . 2 : Produce a program that reads a text file containing exam grades, and prints the highest exam grade. Rearrange
: Produce a program that reads a text file containing exam grades, and prints the highest exam grade.
Rearrange the following lines to produce a program that reads a text file containing exam grades, stored one per line, and prints
the highest exam grade.
How to use this tool
Unused
maxGrade grade
printHighest grade maxGrade
infile opengradestxtr
for line in infile :
grade intline
maxGrade
if grade maxGrade :
Tester.py v
Load default template...
infile.close
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
