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
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