while True:
print("Please tell me your height!\nEnter 'quit' to end the program.")
a = input()
if a=='quit':
break
else:
if float(a)<1.0:
print('Your admission cost is 0 yuan.')
elif 1.0<=float(a)<1.2:
print('Your admission cost is 80 yuan.')
elif float(a)>1.2:
print('Your admission cost is 150 yuan.')

京公网安备 11010502036488号