Reverse string | Sololearn: Learn to code for FREE!

+2

Reverse string

I/p="disk drive" o/p='ksid evird'

12/8/2018 12:38:19 PM

Madhavarao

5 Answers

New Answer

+2

sentence="Disk Drive".split() for i in sentence: print(i[::-1], end=" ")

0

please give me the code

0

I will works but the o/p like this"evird ksid" but required answer is" ksid evird"

0

kk it will works tq