human
Find if a string starts and ends with another given string | Python program to find if a given corner string is present at corners ..
If length of corner string is more , it cannot be present at corners ..
Return true if corner string is present at both corners of given string ..
Driver Code"
How can the above be solved in Python?

=====
What is a code to find if a string starts and ends with another given string and the other steps required?
assistant
#Here is code to find if a string starts and ends with another given string and the other steps required.
 def isCornerPresent ( str , corner ) :
	n = len ( str )
	cl = len ( corner )
	if ( n < cl ) :
		return False
	return ( ( str [ : cl ] == corner ) and ( str [ n - cl : ] == corner ) )
str = " geeksforgeeks "
corner = " geeks "
if ( isCornerPresent ( str , corner ) ) :
	print ( " Yes " )
else :
	print ( " No " )