Hi
I am trying to submit a solution in Python to the problem Mispelling, but I keep getting WA. The program runs without any errors whatsoever on my own computer. I would be grateful for any hints/tips on how to improve my program.
Here it is:
cases = []
n = input()
for i in range(n):
case = raw_input()
place = int(case[0])
case = case[2:]
if place > 0:
case = case[:(place-1)] + case[place:]
case = str(i+1) + " " + case
cases.append(case)
for c in cases:
print c