Conditions et structure de contrôle 2/15


#1



https://www.codecademy.com/fr/courses/python-beginner-fr-FR-a2dkr/1/1?curriculum_id=5370f030fed2a866a2000001#**texte en gras**


# Affectez True ou False à chacune des lignes ci-dessous :
if bool_un = 17 < 118 % 100
bool_un = False
if bool_deux = 100 == 33 * 3 + 1
bool_deux = True
if bool_trois = 19 <= 2**4
bool_trois = False
if bool_quatre = -22 >= -18
bool_quatre = False
if bool_cinq = 99 != 98 + 1
bool_cinq = True

Please what's wrong with my code !


#2

HI the first bool

#if bool_un = 17 < 118 % 100
bool_un = False

is true because

118 % 100 is equal to 18

so 17 < 18 is true then

#if bool_cinq = 99 != 98 + 1
bool_cinq = True

this one is false because

98 + 1 is equal to 99

so it can't be

99 != 99

that 99 isn't equal to 99 so it's false


#3

Thank you.
I've resolved it.