描述
用户输入一个字符串,倒序输出。
输入格式
输入一个字符串
输出格式
一个倒序的字符串
输入输出示例
输入 | 输出 | |
示例 1 | hello | olleh |
n=input()
n=n[::-1]
print(n)
#切片,-1表示逆序