Skip to content

Instantly share code, notes, and snippets.

@ahmed4end
Created August 15, 2020 14:42
Show Gist options
  • Save ahmed4end/17cf4574d6c31e5cf4e87966dad2e427 to your computer and use it in GitHub Desktop.
Save ahmed4end/17cf4574d6c31e5cf4e87966dad2e427 to your computer and use it in GitHub Desktop.
Fibonacci series between 0, n
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