Message: Double check the value of bool_one! Already set?!


#1



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

I did the code as you can see below. But although I didn't change any but the indent block in line 4, I got the message
"Oops, try again.
Double check your value for bool_one!"

I really don't know, what I did wrong. Even if, Python will be 'upgrated' soon. I would really appreciate a quick response.

# Assign True or False as appropriate on the lines below!
# (20 - 10) > 15
if (20 - 10) > 15:
    bool_one = False    # We did this one for you!

# (10 + 17) == 3**16
# Remember that ** can be read as 'to the power of'. 3**16 is about 43 million.
if (10 + 17) == 3 ** 16:
    bool_two = False

# 1**2 <= -1
if 1 ** 2 <= -1:
    bool_three = True 

# 40 * 4 >= -4
if 40 * 4 >= -4:
    bool_four = True

# 100 != 10**2
if 100 != 10 ** 2:
    bool_five = False


#2

on bool_three look:-
bool_three = False
u set it True


#3

my collegue helped and we decided to structure my code new in a shorter form

e.g.
bool_one = (20 - 10) > 15

but the message double check seems to mean changing the boolean for example from True to False


#4

you dont need to do anything complex in these stages, you simply have to set a variable to either True or False
such as bool_one = False

reason why your first solution wasn't working because your if statement was False, so your code didn't produce a variable named bool_one ,and this is true for your other false statements

the instructions are:
Set each variable to True or False depending on what you think the result will be.


#5

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