Answer to Question #227498 in Python for Liti

Question #227498
Create program that requires the user to enter the following data, name, grade in 9 subjects, compute the general weighted average, inform the user if the average pass or fail, ask the user to try again the program Y for yes and will iterate the program value not y displays the message Thank You
1
Expert's answer
2021-08-19T14:35:20-0400
iterative  = True




while iterative:
    name = input()
    grades = input('Enter space seperated grades : ').split()
    if 'F' in grades:
        result = 'fail'
    else:
        result = 'pass'
    print(f"Name : ${name}\n Result : ${result}")
    again_run = (input('Enter Y to re-run the program /N :') == 'Y')
    iterative = again_run

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS