Introduction to Python - if statements

Introduction to Python - if statements

Assessment

Flashcard

Computers

1st - 6th Grade

Hard

Created by

Khadeeja Haji

FREE Resource

Student preview

quiz-placeholder

6 questions

Show all answers

1.

FLASHCARD QUESTION

Front

If statements

Back

If a condition is true, the computer does something, here's an example:

if 8 > 7:

print("Hello")

Since 8 is bigger than 7, the computer puts Hello on the screen

2.

FLASHCARD QUESTION

Front

The keyword 'Else'

Back

'Else' is used when the 'if' part is FALSE, for example:

if 5 >7:

print("Hello")

else:

print("Bye")

Since 5 is NOT bigger than 7, the computer skips the Hello part, and jumps to say Bye

3.

FLASHCARD QUESTION

Front

What does this symbol mean:

>

Back

Bigger than

4.

FLASHCARD QUESTION

Front

What does this symbol mean?

<

Back

Less than

5.

FLASHCARD QUESTION

Front

Which symbol do we use for NOT EQUAL TO?

Back

This is the symbol:

!=

6.

FLASHCARD QUESTION

Front

Which symbol do we use for EQUAL TO

Back

==

is used to check if two things are the same

Discover more resources for Computers