P3_elif.py

• Homework Help
• 1

This preview shows page 1. Sign up to view the full content.

# P3_elif.py # Jiazhen Cao grade_A = 57 grade_B = 43 grade_C = 33 grade_D = 25 stop = 'Quit' name_hint = "First name (or Quit to end): " name = input(name_hint) score_hint = "Points on test:" score = int(input(score_hint)) name_list = [] score_list = [] while name != stop: name_list.append(name) score_list.append(score) name = input(name_hint) if name != stop: score = int(input(score_hint))
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: print() for s in range(len(score_list)): result = "score" if score_list[s] >= grade_A: result = "A" elif score_list[s] >= grade_B: result = "B" elif score_list[s] >= grade_C: result = "C" elif score_list[s] >= grade_D: result = "D" else: result = "F" print(name_list[s], score_list[s], result) print() print("Finished")...
View Full Document

• Fall '08
• Staff
• Algorithms, #, Tied Test, Blum integer, Jiazhen Cao, score_list

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern