Q1: What behavior of the def
statement makes it a statement? Is there a way to use an expression to create a function?
< your answer >
Q2: One of the first confusions of experienced programmers coming from other languages to Python regards the observation that "everything in Python is an object" (cf., this discussion). How does this relate to functions?
< your answer >
Q3: What does it mean for a variable to go out of scope?
< your answer >
Q4: How can a global variable be shadowed? Is this good or bad?
< your answer >
Q5: Explain the concept of forwarding a function call.
< your answer >
Q6: What are keyword-only arguments and when is it appropriate to use them?
< your answer >
Q7: What are callables? How do they relate to function
objects?
< your answer >
Motivate your answer with one short sentence!
Q8: A mere function call is just an expression.
< your answer >
Q9: When using the import
statement, we need to ensure that the imported attributes do not overwrite any already defined variables and functions.
< your answer >
Q10: Functions always have a name by which we can call them.
< your answer >
Q11: The standard library is a collection of numerical tools often used in scientific computing, for example, advanced mathematical functions or utilities for simulation.
< your answer >