Wednesday, November 26, 2008

Recursive lambda implementation factorial function in Python

It is easy to implement factorial function use recursive in Python, but how do you implement it by using recursive lambda in Python? Here is my try:
fact = lambda n: (n and n-1) and n*fact(n-1) or 1

Tuesday, November 25, 2008

What are the Secrets of the Furious Five?

Did you get the secrets of the Furious Five?

Patience(耐心), Courage(勇气), Confidence(信心), Control your strength(自制力) , Compassion(同情心)