Skip to content

Instantly share code, notes, and snippets.

@ehedaoo
Created May 16, 2017 08:16
Show Gist options
  • Save ehedaoo/03f1ef4f3989a1ac11b107919eb9c26e to your computer and use it in GitHub Desktop.
Save ehedaoo/03f1ef4f3989a1ac11b107919eb9c26e to your computer and use it in GitHub Desktop.
Print Fibonacci Series
# Print Fibonacci Series
a = 0
b = 1
test = int(input("Enter the range till you want the series: "))
print(a)
print(b)
for i in range(test):
c = a+b
print(c)
a = b
b = c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment