Operator returns True if both operands are True, otherwise, it returns False.
WHAT IS AND?
In Python, lists are created using these characters.
WHAT ARE SQUARE BRACKETS []?
In Python, this keyword is used to provide alternative conditions within an "if" statement.
WHAT IS elif?
In Python, this feature allows for easy string interpolation, enabling the embedding of expressions within string literals.
WHAT ARE f-strings?
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?
Operator returns True if at least one of the operands is True, otherwise, it returns False.
WHAT IS OR?
In Python lists, the index of the first element is always this number.
WHAT IS 0?
In Python, this symbol is used to indicate the beginning of a block of code under an "if" statement.
WHAT IS A : COLON?
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 {}?
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?
This symbol means something in Python !=
WHAT IS NOT EQUAL TO?
This method is used to add an item to the end of a list.
WHAT IS THE append() METHOD?
In Python, this term describes a conditional statement inside another conditional statement.
WHAT IS NESTED IF STATEMENTS?
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?
In a while loop, if the loop condition is initially False, how many times will the loop body be executed?
WHAT IS ZERO TIMES?
AND, OR, and NOT are a type of operator.
WHAT IS BOOLEAN?
To remove the first occurrence of a value from a list, you use this method.
WHAT IS THE remove() METHOD?
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?
This term describes the practice of using one loop inside another loop in Python.
WHAT IS NESTED LOOPS?
In a while loop, if the loop condition always evaluates to True, what type of loop is created?
WHAT IS AN INFINITE LOOP?
Returns the remainder when the left operand is divided by the right operand.
WHAT IS THE MODULUS OPERATOR (%) ?
To access the last element of a list in Python, you can use this index notation.
WHAT IS -1?
This denotes the level of nesting.
WHAT IS INDENTION?
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?
In Python, write a while loop that prints numbers from 1 to 5.
WHAT IS ...
num = 1
while num <= 5:
print(num)
num += 1