idiombench / Python /train /3.15 /fstring /modern_17.py
SwashBuckler001's picture
IdiomBench (part 9)
acb7111 verified
Raw History Blame Contribute Delete
136 Bytes
def fn(l, incr):
result = l[0]
l[0] += incr
return result
lst = [0]
f'{fn(lst,2)} {fn(lst,3)}'
f'{fn(lst,2)} {fn(lst,3)}'
lst