Fundamental Programming Variables & Scope Beginner
Q What is the output of this Python code? x = 10 def f(): print(x) x = 5 f()
  • A UnboundLocalError is raised
  • B None
  • C 10
  • D 5
Leave a Comment