Genpact Interview Question

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