

Introduction to Python - Comparisons and Operators
Flashcard
•
Computers
•
1st - 6th Grade
•
Hard
Khadeeja Haji
FREE Resource
Student preview

4 questions
Show all answers
1.
FLASHCARD QUESTION
Front
True or false?
print(7 > 5)
Back
True
2.
FLASHCARD QUESTION
Front
The
==
operator checks if....
Back
Two things are the same.
The == operator is used for COMPARISONS, for example:
6 ==5
This is FALSE because 6 is NOT equal to 5
3.
FLASHCARD QUESTION
Front
What is this operator?
!=
Back
This operator is NOT equal, it checks if two things are different
For example:
6 != 5
This is TRUE because 6 and 5 are NOT the same
4.
FLASHCARD QUESTION
Front
What is this operator?
>=
Back
This operator is GREATER THAN OR EQUAL TO
It checks if one thing could be larger than, or the same as another
For example
6 >= 5
6 >= 6
Both are TRUE because 6 is the same as 6, and 6 is larger than 5. The = sign tells us that the numbers COULD be the SAME
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?