# Booleans and control Flow

#1

Exercise 10 chapter 3

``````# 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!
**This is the example**

# Make me true!
bool_two = (len ("Hola") == 4) and (54<23)

_**Should be False cos len ("Hola") is 4 and is == 4 and 54 is not > 23. So...
4           == 4  and False
True and False is False**_

# Make me false!
bool_three = (len ("Hola") == 4) and (54<23)

# Make me true!
bool_four = (len ("Hola") == 4) or (54<23)

# Make me true!
bool_five = (len ("Hola") == 4) and (54==54)
``````

I had no errors in this exercise but must be an error on this one. What I’m doing wrong? or is just a bug??

Thanks

#2
``````# Make me true!
bool_two = (len ("Hola") == 4) and (54<23)
``````

you need to make bool_two true, you made it false.

#3

That’s what I mean, I made it wrong by purpose and the system thinks is correct…

#4

I tried to run the code, it throws an error. Once you submitted the code, the validation is not run again unless you reset the exercise.

#5

Ohh cool! Thanks a lot!!

#6

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