LearnFrenzy
Sign in Take a free test

Functions · Functions MCQ · Question 14

Functions as objects Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links