Quiz Catalog

Catalog of quizzes

def foo(value = []):
  value.append('some')
  return value

values = []
for i in range(3):
  values.append(foo())

print(values)
[['some', 'some', 'some'], ['some', 'some', 'some'], ['some', 'some', 'some']]
  • function/parameter/default