15.7 Practice Makes Perfect/ reverse function
it behaves correctly
def reverse(text): txt = "" for x in text: txt = text[len(text)::-1] return txt print reverse("abcde")
Hello, I know this post is not significant to the topics, but I was wondering even though my code works perfectly however in the instructions it was stated we should not use the following built in commands
[::-1] but my code worked with
[len(x)::-1]. In other words did I pass this lesson fairly or did I cheat this lesson and it requires me to use a different method ?