#welcome!
# this is an interactive recording
# you can pause and edit the code if you wish
# when you press play, your edits will be removed and the recording continues.
# you can also run the code.
# basic for loop in python
for i in range(15):
if i%2 == 0:
print(f"{i} is even")
# have fun!b :)
# one liner fibonacci function to generate a list of fib numbers in O(n) time
# obviously uses the walrus operator so valid from python3.8
fib = lambda n: (lambda n, l: ( [l.__setitem__(i,(l[i-2] + l[i-1])) for i in range(2, n)]))(n, l:=[0,1]+[0]*(n-2)) and l
print(fib(50))
# :)