Mid2 12th_Reverse_Words_List

 sentence="sphn engg clg"

s=sentence.split()
l=[]
for i in s:
    l.append(i[::-1])
print(l)
#output:
['nhps', 'ggne', 'glc']

Comments

Popular posts from this blog

JAVA Lab Programs

HANGMAN GAME

WD 22. StylingLinks&Buttons