Reverse | Sololearn: Learn to code for FREE!

+2

Reverse

How can I make it (python) — for example : (Input): CAKE (Output): EKAC Help !!!!

3/18/2020 10:07:17 AM

Иван Вохмин

3 Answers

New Answer

+7

string = "cake" print(string[::-1])

+1

0

https://www.educative.io/edpresso/how-do-you-reverse-a-string-in-python Have fun