Jan-28-2019, 08:17 AM
Hi!
I need to reverse words like this:
cake
python
cake
python
I need to reverse words like this:
cake
python
Output:keca
onthpy
I used [::-1] but this isn't a correct answer because it gives me:cake
python
Output:ekac
nohtyp
Any suggestion?