Python If Statements Basics

Python If Statements Basics

Assessment

Flashcard

Computers

11th Grade

Easy

Created by

Imhotep Brooks

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Basic if statement

Back

if condition: code block

2.

FLASHCARD QUESTION

Front

Else statement

Back

else: code block

3.

FLASHCARD QUESTION

Front

Elif statement

Back

elif condition: code block

4.

FLASHCARD QUESTION

Front

Comparison operators

Back

==, !=, >, <, >=, <=

5.

FLASHCARD QUESTION

Front

Logical operators

Back

and, or, not

6.

FLASHCARD QUESTION

Front

Nested if

Back

if inside another if

7.

FLASHCARD QUESTION

Front

If with lists

Back

if item in list: code block

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?