Created
August 15, 2020 14:42
-
-
Save ahmed4end/17cf4574d6c31e5cf4e87966dad2e427 to your computer and use it in GitHub Desktop.
Fibonacci series between 0, n
This file contains hidden or 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
feb = lambda n, t=[0, 1]: t if len(t)==n else feb(n, t+[sum(t[-2:])]) | |
print(feb(100)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment