a = "!@$%^"
s = "sfe@v%asfr"
for i in a:
w = s.replace(i,' ')
print(w)
My output : sfe@v%asfr
Desired output : sfe v asfr
How to get the desired output?
a = "!@$%^"
s = "sfe@v%asfr"
for i in a:
w = s.replace(i,' ')
print(w)
My output : sfe@v%asfr
Desired output : sfe v asfr
How to get the desired output?