Posted at

Reverse string function using python

import sys

def reverseString(str):
a=""
for i in range(len(str)-1,-1,-1):
a=a+str[i]
return a

print(reverseString(sys.argv[1]))