human
Tail Recursion | A NON - tail - recursive function . The function is not tail recursive because the value returned by fact ( n - 1 ) is used in fact ( n ) and call to fact ( n - 1 ) is not the last thing done by fact ( n ).
Driver program to test above function"
How can the above be solved in Python?
 Can you provide a code to tail Recursion and the other steps required?
assistant
#Here is code to tail Recursion and the other steps required.
 def fact ( n ) :
	if ( n == 0 ) :
		return 1
	return n * fact ( n - 1 )
print ( fact ( 5 ) )