Reversing a String
There are many ways to reverse a String in Python
Here is my favourite one:
[ x : y : z ] means take indices from x (inclusive) to y (exclusive) in steps of z
Using a step of -1 indicates that we should count backwards
Therefore, counting backwards, make a copy of the entire string. Hence, reversed.
Nice, simple and easy.
Of course there are many other ways to do this, but I personally recommend this approach over the rest. What do you think?
Yasimba.
#Thank u bro '''💓.py ''' from me