Introduction to Python - Comparisons and Operators

Introduction to Python - Comparisons and Operators

Assessment

Flashcard

Computers

1st - 6th Grade

Hard

Created by

Khadeeja Haji

FREE Resource

Student preview

quiz-placeholder

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?