top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Aug 18
  • 1 min read

def append_item(item, container=[]):

container.append(item)

return container

print(append_item(1), append_item(2))


[Running] python3 -u "/Users/name/test/test95.py"

[1, 2] [1, 2]

[Done] exited with code=0 in 0.057 seconds


ree

 
 
 

1 Comment


Guest
Aug 18

Did you try it?

Like
bottom of page