Computer Science, asked by mahiprincy50, 9 months ago

help me to do this program


plz....​

Attachments:

Answers

Answered by akilnandacoc
0

Answer:

I can do it by python.

word="drum"

print (word[-1:-2])

Print (word[-1:-3])

Print (word[-1:-4])

Print (word[-1:-5])

Output:

m

um

rum

drum

Similar questions