Quiz Catalog

Catalog of quizzes

def foo():
  x = 1
  return x

foo.x = 4

print(foo(), foo.x)
1 4
  • scope
  • object/variable
  • function/variable
  • function/object