Compare Values (Exercise)
00:00
Okay, let’s get warmed up with the first review exercise, and the text for the instructions, they read: “For each of the following conditional expressions, guess whether they evaluate to True
or False
.
00:11
Then type them into the interactive window to check your answers.” And the couple of conditional expressions that we’re going to look at is 1
is smaller or equals 1
, 1
does not equal 1
, 1
does not equal 2
, "good"
does not equal "bad"
, "good"
in lowercase does not equal "Good"
capitalized, and the number 123
is equal to the string "123"
.
00:35 Okay. You can, of course, go ahead and think this through by yourself before moving on to the next video, where we’re going to check it in the interactive window.
Become a Member to join the conversation.