Reverse


#1

i have cheated this exercise in my other topic but i became unstaisfied until i understood it and solve it


#2

So do you need help with your code?


#3

no iam just sayin' that the understanding in the right way is the best thing to do


#4

def reverse(text):
length = len(text) - 1
print length
text2 = []
while length >= 0:
text2.append(text[length])
length = length - 1
str1 = ''.join(text2)
return str1

reverse("Python!")


#5

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