And the answer is allegedly True. The first math problem is false so apparently ‘Cleese’ == ‘King Arthur’ Is true. There was nothing taught about this yet. Is it true because it’s just two strings?
There is also inconsistency in the format. The last set of questions asked to make the same kind of statements that equaled true or false and then pretty much asked the same question but we were supposed to just answer True or false. So I ended up making a bunch of expressions that would equal true or false when I didn’t need to.
I’m finding this codecademy lacking in explanation and jumps around too much. I’m glad I haven’t paid yet.
Sometimes these sorts of questions require a bit of research. This question also requires some humor and a bit of pop cultural & film knowledge. Who’s John Cleese? Ever heard of the film “Monty Python and the Holy Grail”? It’s classic. (It also gets quoted a lot bc the Python programming language was named after the British comedy troupe, Monty Python). A bit of research about the history of the programming language will reveal that. (Also, the people who composed these courses clearly have a sense of humor.) I’m a fan and have seen the film many, many times.
Anyway…
John didn’t play the character of King Arthur in the film, Graham Chapman did. So, that side of the expression, John Cleese==King Arthur is False.
So, if that side of the expression evaluates to False, then what about the other side?
Got it, just needed a better understanding of how % works. The way the lesson taught it, I was almost certain the result of 108 % 100 = 1.08 but I must’ve misunderstood.
In Real Number division, 108 / 100 is 1.08. Now take only the decimal portion and multiply it by 100 (the divisor), and voila, 8.
For our purposes we are not thinking Real Number division, but its subset, Integer division. This gives us integer remainders. We can further narrow this to positive dividend and divisor, and put the negative question far out of reach, for the moment. You will learn about that in your studies.