25 Jul python programming
results = []
while True:
name = input(‘enter name: ‘)
grade = float(input(‘enter grade: ‘))
grades = (‘A’, ‘B’, “C”, ‘D’, “F”)
if grade > 90:
results.append((name, grade, grades[0]))
elif grade < 90 and grade > 80:
results.append((name, grade, grades[1]))
answer = input(‘Continue?’)
if answer == ‘N’ or answer == ‘n’:
break
print(results)
Once you have the code running, copy and paste it to a Word document. Run the program with at least three data sets, copy the results and paste it to the same document. Upload two files:
1. the Word document (.docx file), and
2. the source code (.py file)
