Hi, this is Nagamasa Yamada. I tried to see if I could remove a certain character from the text. Editor used googleColaboratory https://colab.research.google.com/notebooks/welcome.ipynb?hl=ja#scrollTo=bXqBzduB4o0d
g =input()
p=input()
h=g.split(sep=p)
b="".join(h)
print(b)
Enter a sentence for the first input and the words you want to skip for the second When split splits a string by a character and puts it in a list I use the property that a certain character disappears
input
Irohanihohe
I
output
Rohanihohe
Recommended Posts