Reverse, prints none instead of revse


#1



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


#2

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


#3

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