Data Types
Control Structures
Functions
Variables
Syntax
100

A data type for representing whole numbers.

What is an int in Python?

100

A control structure used to execute code only if a certain condition is true.

What is an If statement?

100

A block of reusable code that performs a specific task.

What is a function in Python?

100

A named location in memory used to store a value.

What is a variable in Python?

100

A space or tab at the beginning of a line that defines the level of code blocks.

What is an indent in Python?

200

A data type for representing decimal numbers.

What is a float in Python?

200

A loop that repeats a block of code for each item in a sequence.

What is a for loop in Python?

200

It is used to define a new function.

What does the def keyword do?

200

The = symbol used to assign a value to a variable.

What is an assignment operator in Python?

200

A line of code starting with # that is not executed by Python.

What is a comment in Python?

300

A data type for representing text, also known as a string.

What is a str in Python?

300

A loop that repeats a block of code as long as a condition is true.

What is a while loop in Python?

300

It is used to send a function's result back to the caller.

What is a return statement in Python.

300

The area of a program where a variable can be accessed.

What is the scope of a variable?

300

They are used to group statements, call functions, or define tuples.

What are parentheses () used for in Python?

400

A Data type That can only be true or false.

What is a Bool in Python?

400

A block of code that runs if the condition in an if statement is false.

What is an else statement in Python?

400

Variables that are passed into a function to provide input.

What are function parameters?

400

A variable that is accessible throughout the entire program.

What is a global variable?

400

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?

500

A data type for storing multiple items in a single variable.

What is a list in Python?

500

It is short for "else if" and allows multiple conditions to be checked in an if statement.

What is elif used for in Python?

500

A small anonymous function defined with the lambda keyword.

What is a lambda function in Python?

500

A variable that is only accessible within the function or block where it is defined.

What is a local variable?

500

They are used to define lists or access elements in a list.

what are square brackets [] used for in Python?