human
Write me a code to remove characters from the first string which are present in the second string and the other steps required given the following:
Remove characters from the first string which are present in the second string | Python 3 program to remove duplicates.
we extract every character of string string 2.
we find char exit or not.
if char exit we simply remove that char.
Driver Code"
Solution in Python:
assistant
#Here is code to remove characters from the first string which are present in the second string and the other steps required.
 def removeChars ( string1 , string2 ) :
	for i in string2 :
		while i in string1 :
			itr = string1 . find ( i )
			string1 = string1 . replace ( i , ' ' )
	return string1
if __name__ == " _ _ main _ _ " :
	string1 = " geeksforgeeks "
	string2 = " mask "
	print ( removeChars ( string1 , string2 ) )