And or not Booleans


#1



https://www.codecademy.com/courses/python-beginner-BxUFN/2/6?curriculum_id=4f89dab3d788890003000096


It states "Make sure you have a value for all 5 Variables." It specifically singles out line 10. (Boolean 3).


I expected to get a True or False statement.


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

# Make me true!
bool_two = (2 <= 2) and "Alpha" == "Alpha"

# Make me false!
bool_three = 5*2 = 10 and 100 = (100+1)

# Make me true!
bool_four = (3-2) = 1 or 60 = (59-1)

# Make me true!
bool_five = (60 + 5) = 65 and 30 = (15*2)


#2

Hi,

you need to use == to check for equality not =.

= is for assignments.


#3

Use == to check if two things are equal. One = is for setting variables and such.


#4

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