Just a one line code to reverse the string in python. Read the
documentation[
^]
s[::-1]
'dcba'
Or without using it:
def reverse(test):
n = len(test)
x=""
for i in range(n-1,-1,-1):
x += test[i]
return x
Though you can find certain help on this
thread[
^].
-KR