1# Reccursion in python
2def recursive_method(n):
3 if n == 1:
4 return 1
5 else:
6 return n * recursive_method(n-1)
7 # 5 * factorial_recursive(4)
8 # 5 * 4 * factorial_recursive(3)
9 # 5 * 4 * 3 * factorial_recursive(2)
10 # 5 * 4 * 3 * 2 * factorial_recursive(1)
11 # 5 * 4 * 3 * 2 * 1 = 120
12num = int(input('enter num '))
13print(recursive_method(num))
14
15