Created
March 11, 2018 20:01
-
-
Save andrewphillipdoss/c05d80c218a4786525acdc290f194cbd to your computer and use it in GitHub Desktop.
Write a script that Prints Fibonacci Series numbers till 10,000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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