# 待用户输入年龄
a = input('age = ')
# 将用户输入的字符串转化为整数
age = int(a)
# 进行判断,并输出结果
if age >= 18:
print('adult')
elif age >= 6:
print('teenager')
else:
print('kid')
age = 17
teenager
# 待用户输入年龄
a = input('age = ')
# 将用户输入的字符串转化为整数
age = int(a)
# 进行判断,并输出结果
if age >= 18:
print('adult')
elif age >= 6:
print('teenager')
else:
print('kid')
age = 17
teenager