This, But Not That! HELP!

1
find = False or not True and True

Find the value of the find variable.

False Wrong Code True Unable to Find find

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Ameya Salankar
Apr 20, 2014

In Python

not is evaluated first; and is evaluated next; or is evaluated last.

Therefore, the code simplifies to

1
find = False or False and True

&

1
find = False or False

\Rightarrow

1
find = False

Which is the right answer!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...