Remove character
Problem to remove string 1 character which has in string 2 character.
Example-1:
Input : s1 = "crazycode" s2 = "car" Output : zyode
Example-2:
Input : s1 = "helloworld" s2 = "word" Output : helll
Solution
s1 = "crazycode" s2 = "car" d = "" for x in s1: if(x not in s2): d += x print(d)
Output
zyode