Question textAssume the existence of a variable named age. Store in another variable called category, the values"Child" if under 13 "Teen" if between 13 and 19 "Adult" otherwise. For example:[table] Test | Result age = 10 | For the person aged 10 , the category is Child age = 13 | For the person aged 13 , the category is Teen age = 16 | For the person aged 16 , the category is Teen age = 19 | For the person aged 19 , the category is Teen age = 35 | For the person aged 35 , the category is Adult age = 54 | For the person aged 54 , the category is Adult [/table] Answer:(penalty regime: 0 %)if age < 13: category = "Child" elif 13 <= age <= 19: category = "Teen" else: category = "Adult"123456if age < 13: category = "Child"elif 13 <= age <= 19: category = "Teen"else: category = "Adult" ההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Check Question 9未知题型

题目图片

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!