I need to write a function that takes a string as an argument and outputs the letters backward, one per line.so far I have this:
def wordReverse(word):
acum = ""
for ch in word:
acum = ch + acum
return acum
I tried adding \n to acum but an error occurs.Where should I put it?