human
Find the remainder when First digit of a number is divided by its Last digit | Function to find the remainder.
Get the last digit.
Get the first digit.
Compute the remainder.
Driver code"
How can the above be solved in Python?

Can you provide a code to find the remainder when First digit of a number is divided by its Last digit and the other steps required?
assistant
#Here is code to find the remainder when First digit of a number is divided by its Last digit and the other steps required.
 def findRemainder ( n ) :
	l = n % 10
	while ( n >= 10 ) :
		n //= 10
	f = n
	remainder = f % l
	print ( remainder )
n = 5223
findRemainder ( n )