Question 14
Back to Exercise
Which of these is NOT possible with a Python function?
- A Assigning it to another variable
- B Changing its body by assigning to f() Correct
- C Passing it as an argument
- D Storing it in a list
Correct Answer: Option B
f() = … is a SyntaxError (you cannot assign to a call). Functions are first-class objects for everything else.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!