human
Check if a string can become empty by recursively deleting a given sub | Returns true if str can be made empty by recursively removing sub_str ..
idx : to store starting index of sub - string found in the original string.
Erasing the found sub - string from the original string.
Driver code"
Solution in Python:

=====
Give me a code to check if a string can become empty by recursively deleting a given sub and the other steps required?
assistant
#Here is code to check if a string can become empty by recursively deleting a given sub and the other steps required.
 def canBecomeEmpty ( string , sub_str ) :
	while len ( string ) > 0 :
		idx = string . find ( sub_str )
		if idx == - 1 :
			break
		string = string . replace ( sub_str , " " , 1 )
	return ( len ( string ) == 0 )
if __name__ == " _ _ main _ _ " :
	string = " GEEGEEKSKS "
	sub_str = " GEEKS "
	if canBecomeEmpty ( string , sub_str ) :
		print ( " Yes " )
	else :
		print ( " No " )