top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • 7 days ago
  • 1 min read

def f(a, L=[]):

L.append(a)

return L

print(f(1))

print(f(2, []))

print(f(3))


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

[1]

[2]

[1, 3]

[Done] exited with code=0 in 0.069 seconds


Try to run this Python code.
Try to run this Python code.














 
 
 

1 Comment


Guest
7 days ago

Did you guess the correct answer?

Like
bottom of page