Compare Values (Solution)
Then we have another one that reads the string
"good" in lowercase is not the same as the string
"Good" that is capitalized. And keep in mind that something like this is true even though it’s the same word for us reading it.
and it is. And then the last one was that the integer
123 is equal to the string
"123". Now these are two different types, so they’re not equal to each other, so I expect that to be
False. All right, so that’s a quick training session, and it worked out.
And here are our solutions put back onto the slide. I’m using like a little green check mark for
True and an X for
False. And here’s the solutions.
1 <= 1 is true.
1 != 1 is false.
1 != 2 is true.
Become a Member to join the conversation.