您的位置:首页 > 其它

第三次作业第五章

2018-03-25 21:43 260 查看
5 -3 &&5-4aline_color = input('请输入green, yellow,red等颜色\n')
if aline_color == 'green':
print('you get five scores')
else:
print('you get ten scores')5-5aline_color = input('请输入green, yellow,red等颜色\n')
if aline_color == 'green':
print('you get five scores')
elif aline_color == 'yellow':
print('you get ten scores')
elif aline_color == 'red':
print('you get fifteen scores')
5-6age = int(input('please enter your age\n'))
if age < 2:
print('you are a chrild')
elif age <4:
print('you are learning walking')
elif age < 13:
print('you are a kid')
elif age <20:
print('you are a teenage')
elif age < 65:
print('you are a adult')
else: print('you are the aged')5-7favorite_fruits = input('please enter your favorite fruits\n')
fruits_list = ['apple','banana','pear','grape','orange']
if favorite_fruits in fruits_list:
print('you are really like the '+ favorite_fruits)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: