0
What's wrong with it?
4 odpowiedzi
+ 2
Index 'i' should be in square brackets:
new.append(l[i][ : : -1])
+ 2
1) 'new = []' should be before 'while'
2) you skiped i = i +1, so you got the endless loop
3) there is an error in append. Try this:
new.append(l[i][ : : -1])
0
Thank you
0
You are welcome