Facebook
From Big Sheep, 3 Years ago, written in Python.
This paste is a reply to Re: Re: Re: Untitled from Жанарбек - view diff
Embed
Download Paste or View Raw
Hits: 100
  1. def red(a):
  2.     c=[1,]
  3.     fib1=fib2=1
  4.     for i in range(a-2):
  5.         fib_sum=fib1+fib2
  6.         fib1,fib2=fib2,fib_sum
  7.         c.append(fib_sum)
  8.     return c
  9. print(red(15))