Skip to content

Instantly share code, notes, and snippets.

@craftbyte
Created February 17, 2016 07:40
Show Gist options
  • Save craftbyte/32a7cc84f4c07730229e to your computer and use it in GitHub Desktop.
Save craftbyte/32a7cc84f4c07730229e to your computer and use it in GitHub Desktop.
Fibonacci, for R2a
def fibonacci(stevilo):
fib1, fib2 = 1, 1
for i in range(stevilo):
print(fib1)
fib1, fib2 = fib2, fib1+fib2
x = int(input("Pusi kurac: "))
fibonacci(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment