Genpact interview question

Write recursion code to calculate factorial of a number in python.