human
What is a code to program to find the last digit of X in base Y and the other steps required given the following:
Program to find the last digit of X in base Y | Function to find the last digit of X in base Y.
Driver code"
Solution in Python:
assistant
#Here is code to program to find the last digit of X in base Y and the other steps required.
 def last_digit ( X , Y ) :
	print ( X % Y ) ;
if __name__ == " _ _ main _ _ " :
	X = 55 ; Y = 3 ;
	last_digit ( X , Y ) ;