Boolean operation in if : Boolean : Data Type PYTHON examples


PYTHON examples » Data Type » Boolean »

 

Boolean operation in if


Boolean operation in if


# number <= 10 and number >= could be written as <= number <= 10

number = 9

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

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Data Type
» Boolean