car.3205 发表于 2018-8-12 08:20:36

python练习-if-else-and

age=float(raw_input("enter your age:"))  
grade=int(raw_input("enter your grade:"))
  
if age >=8 and grade >=3:
  
    print "you can play this game."
  
else:
  
    print "sorry ,you can't play the game."
页: [1]
查看完整版本: python练习-if-else-and