Answer
In the given function the value of n is change to n/10, but in python the division operator will convert the value of n to float and calculate exactly the value of n/10, so n will never become exactly zero which is the base case for the recursion hence the recursion will never end.
Work Step by Step
The above mentioned problem can be solved by replacing n/10 by n//10, which will round off the decimal part and hence the value of n will eventually become 0.