human
Check if a number ends with another number or not | Function to check if B is a suffix of A or not.
Convert numbers into strings.
Check if s2 is a suffix of s1 or not.
If result is true print " Yes ".
Driver code.
Given numbers.
Function call"
How can the above be solved in Python?
assistant
#Here is code to check if a number ends with another number or not and the other steps required.
 def checkSuffix ( A , B ) :
	s1 = str ( A )
	s2 = str ( B )
	result = s1 . endswith ( s2 )
	if ( result ) :
		print ( " Yes " )
	else :
		print ( " No " )
if __name__ == ' _ _ main _ _ ' :
	A = 12345
	B = 45
	checkSuffix ( A , B )