Reverse string

PHOTO EMBED

Mon Jan 31 2022 05:30:10 GMT+0000 (Coordinated Universal Time)

Saved by @marcpio

# step size of -1 goes through string backwards, hence [::-1] generates a reversed string
word = 'stop'
word[::-1]
>> 'pots'
content_copyCOPY