cmd+k|ctrl+k
cmd+k
ctrl+k
Navigation
Browse public code snippets.
Contact us about glot.io.
Read the privacy policy.
Manage snippets in your account.
Open your account settings.
Languages
Create a new Python snippet.
Create a new TypeScript snippet.
Create a new C snippet.
Create a new Rust snippet.
Create a new Java snippet.
Python
public
freaklordx
2016-04-26T20:38:51Z
fib = lambda x: ((fib(x-1)+fib(x-2)) if x > 1 else 1) if x > 0 else 0 print([fib(i) for i in range(10)])