Podcast
Questions and Answers
What is one good reason that programming languages allow you to define functions?
What is one good reason that programming languages allow you to define functions?
- It makes code easier to read
- It allows code reuse (correct)
- It makes code easier to maintain
- It allows logical grouping of code
What keyword do you use at the beginning of a function definition?
What keyword do you use at the beginning of a function definition?
- method
- define
- fun
- def (correct)
What are two keywords used in Python for conditional branching?
What are two keywords used in Python for conditional branching?
- if, then
- if, elif, else (correct)
- and, or
- when, else
What built-in Python function allows you to receive information from a user?
What built-in Python function allows you to receive information from a user?
What is the difference between a function definition and a function call?
What is the difference between a function definition and a function call?