Python gives us a very easy way to reverse our string:-
We can reverse our string by using Extended Slice method:-
Extended Slice:-
This slicing method works by doing [begin: end: step] leaving begin and end off and specifying a step of -1, it reverses a string.
Example:-
string= "hello world"
string[::-1]