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
Comments
Leave a comment