Skip to content

Instantly share code, notes, and snippets.

@glassus
Last active September 27, 2020 16:47
Show Gist options
  • Save glassus/9ac28d8bcb12ac917bf17ea81afce288 to your computer and use it in GitHub Desktop.
Save glassus/9ac28d8bcb12ac917bf17ea81afce288 to your computer and use it in GitHub Desktop.
def fibo_imperatif(n):
a = 0
b = 1
for k in range(n-1):
t = b
b = a + b
a = t
return b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment