Se7enSquared
10/18/2019 - 5:35 PM

Reverse a string

Simple string reversal

a ="Hello there I'm Bob"
reverse = a[::-1]
print(reverse)
# contents of reverse: 'boB m'I ereht olleH'