A data type for representing whole numbers.
What is an int in Python?
A control structure used to execute code only if a certain condition is true.
What is an If statement?
A block of reusable code that performs a specific task.
What is a function in Python?
A named location in memory used to store a value.
What is a variable in Python?
A space or tab at the beginning of a line that defines the level of code blocks.
What is an indent in Python?
A data type for representing decimal numbers.
What is a float in Python?
A loop that repeats a block of code for each item in a sequence.
What is a for loop in Python?
It is used to define a new function.
What does the def keyword do?
The = symbol used to assign a value to a variable.
What is an assignment operator in Python?
A line of code starting with # that is not executed by Python.
What is a comment in Python?
A data type for representing text, also known as a string.
What is a str in Python?
A loop that repeats a block of code as long as a condition is true.
What is a while loop in Python?
It is used to send a function's result back to the caller.
What is a return statement in Python.
The area of a program where a variable can be accessed.
What is the scope of a variable?
They are used to group statements, call functions, or define tuples.
What are parentheses () used for in Python?
A Data type That can only be true or false.
What is a Bool in Python?
A block of code that runs if the condition in an if statement is false.
What is an else statement in Python?
Variables that are passed into a function to provide input.
What are function parameters?
A variable that is accessible throughout the entire program.
What is a global variable?
It is used to start an indent block, such as after an if statement or function definition.
What is a colon : use for in Python?
A data type for storing multiple items in a single variable.
What is a list in Python?
It is short for "else if" and allows multiple conditions to be checked in an if statement.
What is elif used for in Python?
A small anonymous function defined with the lambda keyword.
What is a lambda function in Python?
A variable that is only accessible within the function or block where it is defined.
What is a local variable?
They are used to define lists or access elements in a list.
what are square brackets [] used for in Python?