How come?!


#1

Hello,

how’s that “1 ** 100 == 100 ** 1 or 3 * 2 * 1 != 3 + 2 + 1” False or False?


#2

Please point to the exercise with a link in your opening post. Thanks.

1 ** 100 => 1

100 ** 1 => 100

1 == 100 => False

3 * 2 * 1 => 6

3 + 2 + 1 => 6

6 != 6 => False

So,

False or False => False

#3

Sry, my bad, was on 1*100? not 1 ** 100… :s


#4

We still a link to the exercise so we can confirm. Please post it in reply if you are unable to edit your opening post. Thanks.


#5

here: https://www.codecademy.com/courses/learn-python/lessons/conditionals--control-flow/exercises/or?action=lesson_resume&link_content_target=interstitial_undefined


#6
1 ** 100 == 100 ** 1 or 3 * 2 * 1 != 3 + 2 + 1

Looks just like above.

Were you just trying to experiment? Use the steps shown above to evaluate.


#7

Yes, it’s all done and passed. Cheers!


#8

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