Computer Science, asked by Rayyan412, 10 months ago

Given two strings s1 and s2, remove all the characters from s1 which is present in s2.

Answers

Answered by adithya02
0

Answer:

s1_new=''

for i in s1:

if i not in s2:

s1_new += i

s1 = s1_new

This is a Python 2.7 and 3.x code.

Similar questions