Zhejiang Edition "the Python programming" Title Set Chapter 3-8 string in reverse (15 minutes)

s = input()
li = list(reversed(s))
s_new = ''.join(li)
print(s_new)
Published 33 original articles · won praise 0 · Views 243

Guess you like

Origin blog.csdn.net/weixin_42229583/article/details/104588980