Facebook
From Mature Goose, 4 Years ago, written in Python.
This paste is a reply to Re: Re: Re: Untitled from Жанарбек - go back
Embed
Viewing differences between Re: Re: Re: Untitled and Re: Re: Re: Re: Untitled
def red(a):
    c=[1,1]
c=[1,]
    fib1=fib2=1
    for i in range(a-2):
        fib_sum=fib1+fib2
        fib1,fib2=fib2,fib_sum
        c.append(fib_sum)
    return c
print(red(15)) print(red(15))