#10 · Strings · Beginner · 40 XP · about 3 min
Write a function called reverse_string(s) that returns the reversed version of the input string.
reverse_string("hello") # Returns "olleh" reverse_string("Python") # Returns "nohtyP" reverse_string("a") # Returns "a" reverse_string("") # Returns ""
First solves only, ranked by stars and then time.