Here's what I have:
def reverse(text): opposite = [] for character in text: stuff = opposite.append(character) return stuff
Is there something wrong with this for loop?
Couldn't you use the split method instead it will return a list
text.split()
Or even
list(text)
Which would list out each character
yourstring='welcome'
l=[]
for char in yourstring:
l.append(char)
print l