Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Babbys first Python Fibonacci

Name: Anonymous 2011-11-28 7:40


from sys import argv
script, n = argv

f = lambda x: x and (x-1 and x-2 and f(x-1) + f(x-2) or 1)
print f(int(n))

Name: Anonymous 2011-11-28 17:59

>>8'
>using a ; to represent `and' or `or'


no one does this

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List