Program - factorial using pythonish


Topic: Program - factorial using pythonish

Solution

def fact_one_line(n):
    return 1 if n < 2 else n*fact_one_line(n-1)



List all Python Programs