+ 3

Reverse

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

18th Mar 2020, 10:07 AM
Š˜Š²Š°Š½ Š’Š¾Ń…Š¼ŠøŠ½
Š˜Š²Š°Š½ Š’Š¾Ń…Š¼ŠøŠ½ - avatar
3 Answers
+ 7
string = "cake" print(string[::-1])
18th Mar 2020, 10:37 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
:)
18th Mar 2020, 10:25 AM
Š˜Š²Š°Š½ Š’Š¾Ń…Š¼ŠøŠ½
Š˜Š²Š°Š½ Š’Š¾Ń…Š¼ŠøŠ½ - avatar