返回顶部

收藏

Boolean operation in if

更多
# number <= 10 and number >= 1 could be written as 1 <= number <= 10

number = 1
if number <= 10 and number >= 1:
    print 'Great!'
else:
    print 'Wrong!'

标签:Python,基础

收藏

0人收藏

支持

0

反对

0

发表评论