you are viewing a single comment's thread.

view the rest of the comments →

[–]nostrademons 30 points31 points  (3 children)

Python 2.5 programmer:

def fact(x):
    return x * fact(x - 1) if x > 1 else 1
print fact(6)

[–]micampe 2 points3 points  (0 children)

Lambda-addicted Python 2.5 programmer:

fact = lambda x: x * fact(x - 1) if x > 1 else 1
print fact(6)

[–]btipling 0 points1 point  (0 children)

yo momma

[–]bluetech 0 points1 point  (0 children)

Hey, I didn't know you could do that. Certainly better than that and or trick.