a = “example string”

a = “example string”[::-1]

print(a) For our example, “gnirts elpmaxe” would print in the terminal.

b = “example string” You can convert an integer to a string if needed.

b_reverse = ""

for i in b:    b_reverse = i + b_reverse

print(b_reverse) For our example, “gnirts elpmaxe” would print in the terminal.

c = “example string”

c_backward = reversed(c)

c_new = ""

for i in c_backward:    c_new = c_new + i

print(c_new) For our example, “gnirts elpmaxe” would print in the terminal.