This is my personal favorite way to reverse a string:
stra="This is a string"
revword = stra[::-1]
print(revword) #"gnirts a si sihT
or, if you want to reverse the word order:
revword = " ".join(stra.split()[::-1])
print(revword) #"string a is This"
🙂