returns None

I dont know what Im doing wrong, I tried different ways of converting my list into a string and failed every time, the programme sais for "Python!" it returns "" instead of "!nohtyP"

def reverse(text):
    list1 = []
    for letter in text:
    ans = ""
    for i in list1:
    return ans


if i where you, i would check on some documentation how to use .join(), you use it incorrectly

you can also join strings together with +, maybe you find this easier


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.