tyler569 icon

fibonacci

tyler569 | PRO | 07/28/18 05:23:50 AM UTC | 0 ⭐ | 934 👁️ | Never ⏰ | []
Python |

90 B

|

None

|

0 👍

/

0 👎

def fib(iterations):
    a, b = 0, 1
    for _ in range(iterations):
        a, b = b, a+b
    return a

Comments