Reverse, prints none instead of revse


def reverse(text):
    count = 0
    while count == int(len(text)):
        part= text % 10
        count = count + part
        text = text // 10
    return text


You need to print your result. Returning it simply says, "Ok, here's the value I got". It doesn't actually print anything.


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