<filename>wtf/gen.py
def fibo(n):
    if n < 2:
        return n

    cache = [0 for _ in range(n + 1)]
    cache[1] = 1

    for i in range(2, n + 1):
        cache[i] = cache[i - 1] + cache[i - 2]

    return cache[n]


file = open("wtf/wtf.py", "w")
for i in range(1, 101):
    file.write(f"   elif n == {i}: return {fibo(i)}\n")
file.close()
<filename>wtf/gen.py
def fibo(n):
    if n < 2:
        return n

    cache = [0 for _ in range(n + 1)]
    cache[1] = 1

    for i in range(2, n + 1):
        cache[i] = cache[i - 1] + cache[i - 2]

    return cache[n]


file = open("wtf/wtf.py", "w")
for i in range(1, 101):
    file.write(f"   elif n == {i}: return {fibo(i)}\n")
file.close()