Я знаю, что это глупо и просто, но я не могу понять, как завершить запуск программы после того, как результаты будут обработаны и переданы в последнем операторе while, заранее спасибо.
def main():
pass
Name = raw_input("Enter your name: ")
while True:
HealthScore = int(raw_input("Enter your standardised health score: "))
try:
if 0 <= int(HealthScore) <= 100:
break
except ValueError:
print("The number must be in the range 0-100")
while True:
EconomicOutput = int(raw_input("Enter your standardised economic output score: "))
try:
if 0 <= int(EconomicOutput) <= 100:
break
except ValueError:
print("The number must be in the range 0-100")
while True:
Grade = (raw_input("Enter your standardised Grade: "))
try:
if Grade in ['A', 'B', 'C', 'D', 'E', 'F']:
break
except ValueError:
print("Grade is incorrect")
while True:
try:
if Grade is 'A':
print("congratulations, You meet the exceptional criteria")
break
elif EconomicOutput > 85 :
print("congratulations, You meet the exceptional criteria")
break
elif EconomicOutput > 60 and HealthScore > 60 and Grade is 'B' or EconomicOutput > 60 and HealthScore > 60 and Grade is 'C':
print("congratulations, " + Name + " you have been selected.")
break
else:
print("Sorry, you do not meet the criteria")
break
if __name__ == '__main__':
main()