This is my code I have come up with trying to reverse these strings
presidents = [ "George Washington " , " John Adams " , " Thomas Jefferson " , " James Madison " , " James Monroe " ," John Quincy Adams " ]
reversedPresidents=""
for ch in presidents:
reversedPresidents=ch+reversedPresidents
print(reversedPresidents)
As of now, it only prints the list backwards like this:
John Quincy Adams James Monroe James Madison Thomas Jefferson John Adams George Washington
I need it to output the list like:
notgnihsaW egroeG
smadA nhoJ
and so on