Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def foo(a, l=[]):
- l.append(a)
- print(l)
- l = [1, 2]
- foo(1)
- foo(1, l)
- foo(1, l)
- foo(1)
- foo(1)
- # output ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement