def return if else x-1

1
2
def f(x):
return( 1 if x == 0 else x * f(x-1) )