Hi

please suggest why i am getting error:

x= float (input('Enter value for x: '))

n = int (input(‘Enter your value for N :’))

def factorial (n):

```
if (n==1):
return 1
else:
return n * factorial(n-1)
```

print ('value of N! is : ',factorial (n))

def ratio (x, n):

```
ratio = x**n / factorial (n)
return ratio
```

print (ratio)

*OUTPUT*

Enter value for x: 6

Enter your value for N :3

value of N! is : 6

<function ratio at 0x7fd0d3ec1d90>