题解 | #数字颠倒#
数字颠倒
http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
in_str = str(input())
out_arr = []
out_str = ""
for i in range(len(in_str)):
out_arr.append(in_str[i])
for i in range(len(in_str)-1,-1,-1):#左闭右开
out_str += out_arr[i]
print(out_str)
out_arr = []
out_str = ""
for i in range(len(in_str)):
out_arr.append(in_str[i])
for i in range(len(in_str)-1,-1,-1):#左闭右开
out_str += out_arr[i]
print(out_str)