1. 程式人生 > >猜年齡大小(elif的用法)

猜年齡大小(elif的用法)

malle inpu uek got it! 大小 elif put NPU

age_of_XueKe=18
age=int(input("age:"))

if age == age_of_XueKe:
print("Yes,you got it!")
elif age >age_of_XueKe:
print("Think smaller!")
else:
print("Think bigger!")

猜年齡大小(elif的用法)