7/15 Seems correct?


#1

Hi, I have the following code, which produces whatever the user inputs in reverse, yet the challenge won't pass. Any help much appreciated.

word = raw_input("> ")
length = len(word)
numbers = []

def reverse(word):
….count = 0
….while count != int(length):
……..numbers.append(word[int(length - (count + 1))])
……..count += 1

reverse(word)
s = ''.join(numbers)
print s


#2

Rearrange your code to this

def reverse(word):
    length = len(word)
    numbers = []
    count = 0
    while count != int(length):
        numbers.append(word[int(length - (count + 1))])
        count += 1
    return ''.join(numbers)
        

word = raw_input("> ")
print reverse(word)

#3

Thanks Rydan!! It worked! I'd been playing with that all day!