a="sedafadg"b=0while b < len(a): if a[b]=="a": a=a[:b+1]+a[b+3:] b=b+1 else: b=b+1print(a)
Standard input is empty
sedadg
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!