Conditionals & Control Flow


#1



its says line 16 is wrong. Its the not boolean i am confused about do you still have to make a statement like

6<9 not 8<7
or just write

not 7==8


# Use boolean expressions as appropriate on the lines below!

# Make me false!
bool_one = (2 <= 2) and "Alpha" == "Bravo"  # We did this one for you!

# Make me true!
bool_two = 3<5 and 5<8

# Make me false!
bool_three = 7==7 or 5==5

# Make me true!
bool_four = 5<7 or 7>10

# Make me true!
bool_five =   not 7==9  

its this the last thats wrong


#2

@jamescoderchamp,

# Make me true!    <<<== so a not false gives a true
bool_five =   not 7==9  
#and you use (not true) which gives a false

https://docs.python.org/2.0/ref/lambda.html
https://docs.python.org/2.0/ref/comparisons.html

Try to read the operator precedence
http://stackoverflow.com/questions/16679272/priority-of-the-logical-statements-not-and-or-in-python
and then use
not (7==90)


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.