Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewphillipdoss/c05d80c218a4786525acdc290f194cbd to your computer and use it in GitHub Desktop.
Save andrewphillipdoss/c05d80c218a4786525acdc290f194cbd to your computer and use it in GitHub Desktop.
Write a script that Prints Fibonacci Series numbers till 10,000
fibonacci = [1,1]
i = 1
while (fibonacci[i] + fibonacci[i-1]) < 10000:
fibonacci.append(fibonacci[i] + fibonacci[i-1])
i += 1
print(fibonacci)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment