On exercise 2-question 1b. I tried to write this code:
for i in str[0:len(str)//2]:
str[-1-i] = temp
but it didn't work because only an internal part of the list was reversed. What is ther reason?