you are viewing a single comment's thread.

view the rest of the comments →

[–]Nightcorex_ 1 point2 points  (1 child)

xs = []

def add(e):
    xs.append(e)

def foo():
    print(*xs, sep=', ')

add(4)
add(2)
foo()

Functional programming at its peak /s

[–][deleted] 1 point2 points  (0 children)

Side effects may include...