You can reverse a string in Python in multiple ways:
1. Using slicing (shortest and fastest)
s = "hello"
print(s[::-1])
2. Using reversed() with join
s = "hello"
print("".join(reversed(s)))
3. Using a loop
s = "hello"
res = ""
for ch in s:
res = ch + res
print(res)
All of these output: "olleh"