Operators
Lists
Logic
Strings and For Loops
While Loops
100

Operator returns True if both operands are True, otherwise, it returns False.

WHAT IS AND?

100

In Python, lists are created using these characters.

WHAT ARE SQUARE BRACKETS []?

100

In Python, this keyword is used to provide alternative conditions within an "if" statement.

WHAT IS elif?

100

In Python, this feature allows for easy string interpolation, enabling the embedding of expressions within string literals.

WHAT ARE f-strings?

100

This type of loop in Python continues to execute a block of code as long as a specified condition evaluates to True.

WHAT IS A WHILE LOOP?

200

Operator returns True if at least one of the operands is True, otherwise, it returns False.

WHAT IS OR?

200

In Python lists, the index of the first element is always this number.

WHAT IS 0?

200

In Python, this symbol is used to indicate the beginning of a block of code under an "if" statement.

WHAT IS A : COLON?

200

In an f-string, expressions are enclosed within these characters to indicate that they should be evaluated and embedded into the string.

WHAT ARE CURLY BRACES {}?

200

What is the term for the condition that, when evaluated to False, causes a while loop to terminate?

WHAT IS THE LOOP CONDITION / LOOP EXIT CONDITION?

300

This symbol means something in Python !=

WHAT IS NOT EQUAL TO?

300

This method is used to add an item to the end of a list.

WHAT IS THE append() METHOD?

300

In Python, this term describes a conditional statement inside another conditional statement.

WHAT IS NESTED IF STATEMENTS?

300

In Python, this type of loop is used to iterate over a sequence of elements, executing a block of code for each item in the sequence.

WHAT IS A FOR LOOP?

300

In a while loop, if the loop condition is initially False, how many times will the loop body be executed?

WHAT IS ZERO TIMES? 

400

AND, OR, and NOT are a type of operator.

WHAT IS BOOLEAN?

400

To remove the first occurrence of a value from a list, you use this method.

WHAT IS THE remove() METHOD?

400

In Python, the standard convention for indentation is to use a number of spaces for each level of indentation within a block of code.

WHAT IS 4?

400

This term describes the practice of using one loop inside another loop in Python.

WHAT IS NESTED LOOPS?

400

In a while loop, if the loop condition always evaluates to True, what type of loop is created?

WHAT IS AN INFINITE LOOP?

500

Returns the remainder when the left operand is divided by the right operand.

WHAT IS THE MODULUS OPERATOR (%) ?

500

To access the last element of a list in Python, you can use this index notation.

WHAT IS -1?

500

This denotes the level of nesting.

WHAT IS INDENTION?

500

In a for loop, this variable is commonly used to represent each item in the sequence being iterated over.

WHAT IS THE LOOP VARIABLE? / WHAT IS THE ITERATOR VARIABLE?

500

In Python, write a while loop that prints numbers from 1 to 5.

WHAT IS ...


num = 1

while num <= 5:

    print(num)

    num += 1


M
e
n
u