python的倒序输出问题

img


题目要求如上


a=input()
print(a[::-1])

这样为什么是错的,明明能输出正确结果

加个for a in range(100,1000):试试

img

img