Q1. What is the main benefit of using a function?
- It makes code harder to read
- It helps organize reusable code
- It removes the need for variables
- It only works in math programs
Reveal answer
Answer: It helps organize reusable code
Functions group instructions into reusable blocks, which improves structure and readability.
Q2. True or False: A list can store multiple related values in one place.
- True
- False
Reveal answer
Answer: True
Lists are designed to hold several items together, such as tasks or department names.
Q3. What does a function parameter do?
- It deletes a function
- It passes a value into a function
- It prints every line twice
- It changes Python into another language
Reveal answer
Answer: It passes a value into a function
Parameters let you send data into a function so it can work with different inputs.