human
Replace all occurrences of a string with space | Function to extract the secret message.
Replacing all occurrences of Sub in Str by empty spaces.
Removing unwanted spaces in the start and end of the string.
Driver code"
Solution in Python:
 ... What is a code to replace all occurrences of a string with space and the other steps required?
assistant
#Here is code to replace all occurrences of a string with space and the other steps required.
 def extractSecretMessage ( Str , Sub ) :
	Str = Str . replace ( Sub , " ▁ " )
	return Str . strip ( )
Str = " LIELIEILIEAMLIECOOL "
Sub = " LIE "
print ( extractSecretMessage ( Str , Sub ) )