Why does the errors argument persist across successive function calls? Shouldn't it be reset to []
since no parameter was specified?
def test(errors=[]):
errors.append('hello')
return errors
print(test()) # ['hello']
print(test()) # ['hello', 'hello']