你好,下面是改好的对应的代码:
age = input("your age is ")
while age:
age = int(age)
if 18 <= age:
print (" you can drive car now")
else:
print ("Sorry!")
print ("enter age or press enter to quit")
age = input("your age is ")
print ("quit")