python_score =50
c_score =50
# 要求只要有一门成绩 > 60 分就算合格
if python_score >60 or c_score >60:
print("考试通过")
else:
print("考试失败,继续努力")
# 练习1: 定义一个整数变量 age,编写代码判断年龄是否正确
age =12
# 要求人的年龄在 0-120 之间
"""
10000
age >= 0 or age <= 120
age >= 0 and age <= 120
"""
if age >=0 and age <=120:
print("年龄正确")
else:
print("年龄不正确")
网友评论