Notification
No New notification
Learn to code with PrepInsta
Check PrepInsta Coding Blogs, Core CS, DSA etc
Never Miss an OffCampus Update
Get OffCampus Updates on Social Media from PrepInsta
No New notification
Check PrepInsta Coding Blogs, Core CS, DSA etc
Get OffCampus Updates on Social Media from PrepInsta
Get Hiring Updates right in your inbox from PrepInsta
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)