Skip to content

Instantly share code, notes, and snippets.

@rjshekar90
Created March 17, 2017 21:26
Show Gist options
  • Save rjshekar90/2e39570c97211e16dfadd88682375bcc to your computer and use it in GitHub Desktop.
Save rjshekar90/2e39570c97211e16dfadd88682375bcc to your computer and use it in GitHub Desktop.
fib = lambda n: fib(n-1)+fib(n-2) if n>1 else n
print(list(map(lambda x: x**3, [fib(n) for n in range(int(input().strip()))])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment