Boolean Operators : Boolean Operators : Operator PYTHON TUTORIALS


PYTHON TUTORIALS » Operator » Boolean Operators »

 

Boolean Operators


number = input('Enter a number between and 10') 
if number <= 10
    if number >= 1
        print 'Great!
    else
        print 'Wrong!
else
    print 'Wrong!

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



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Operator
» Boolean Operators