首页 > 编程语言 > 详细

python练习-if-else-and

时间:2017-01-10 00:01:30      阅读:202      评论:0      收藏:0      [点我收藏+]
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."


python练习-if-else-and

原文:http://huzhongliang.blog.51cto.com/1817180/1890513

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!