Yea its weird lol. Anyway, while we're here. Any advise on reverse??
"""def reverse(text): redo = '' for char in range(len(text) -1, -1, -1): redo += text[char] return redoprint reverse(hello)
Pass the text in the form of a string, not a variable (hello is not defined).
For practice, try re-posting your code so we can get a final look at it.
redo = ''
for char in range(len(text) -1, -1, -1):
redo += text[char]
A post was split to a new topic: Returns just firs (or last symbole)
This code runs fine. What are you finding?
It was the original indentation that was wrong but i fixed it while i was in the middle of learning how to properly transfer the code to the help section. I really appreciate your patience and assistance, seriously thank you.
Forgot to mention that I had repaired that when we were DMing the topic. That's the code I tested, afterward.
Well then, thank you again. I'm sure I'll be running into a different problem soon.