human
Check if a string is suffix of another | Python 3 program to find if a string is suffix of another.
Driver Code.
Test case - sensitive implementation of endsWith function"
Solution in Python:
assistant
#Here is code to check if a string is suffix of another and the other steps required.
 def isSuffix ( s1 , s2 ) :
	n1 = len ( s1 )
	n2 = len ( s2 )
	if ( n1 > n2 ) :
		return False
	for i in range ( n1 ) :
		if ( s1 [ n1 - i - 1 ] != s2 [ n2 - i - 1 ] ) :
			return False
	return True
if __name__ == " _ _ main _ _ " :
	s1 = " geeks "
	s2 = " geeksforgeeks "
	result = isSuffix ( s1 , s2 )
	if ( result ) :
		print ( " Yes " )
	else :
		print ( " No " )