top of page
Search

PYTHON CODE

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Jul 3
  • 1 min read

Updated: Jul 5

def outer():

funcs = []

for i in range(3):

def inner(i=i):

return i * 2

funcs.append(inner)

return funcs

a, b, c = outer()

print(a(), b(), c())


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

0 2 4

[Done] exited with code=0 in 0.052 seconds

Python code.
Python code.

















 
 
 

1 Comment


Guest
Jul 03

Try to run it.

Like
bottom of page