News

This uses Python’s slice syntax. [::-1] means “take the whole string but step backwards. ... You can use it on strings, tuples, or even the output of a generator.
Strings can be considered index-based collections of smaller strings or characters, each one referenced by its position in the string. Furthermore, Python contains the notion of "slice-notation ...