top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Jun 30, 2025
  • 1 min read

def func(a, L=[]):

for i in range(a):

L.append(i)

return L

print(func(2))

print(func(3))


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

[0, 1]

[0, 1, 0, 1, 2]

[Done] exited with code=0 in 0.053 seconds


#Visual Studio Code

Python coding.
Python coding.

















 
 
 

Recent Posts

See All

1 Comment


Guest
Jun 30, 2025

Try this short Python exercise.

Like
bottom of page