1 2 3 4 5 6 7 8 9 10 11 12 13
s = input() def remove(s,i): print("removal of",s[i]) str = s.replace(s[i],"") return str for i in range(len(s)): print(i) print(remove(s,i)) print("________________________")
1 2 3 4
Traceback (most recent call last): Line 1, in <module> s = input() EOFError