Gourav strr=input() res=” for i in range (len(strr)): res+=strr[len(strr)-1-i] print(res) Log in to Reply
shushank Python s=input() l=list(s) s1=”” l1=[] l1[:]=l[::-1] for i in range(len(l1)): s1=s1+l1[i] print(s1) Log in to Reply
strr=input()
res=”
for i in range (len(strr)):
res+=strr[len(strr)-1-i]
print(res)
n=input()
a=””
for i in range(len(n)-1,-1,-1):
a=a+n[i]
print(a)
Python
s=input()
l=list(s)
s1=””
l1=[]
l1[:]=l[::-1]
for i in range(len(l1)):
s1=s1+l1[i]
print(s1)