PythonEasyString Manipulation

Reverse a String

Write a function that reverses a string without using the built-in reverse() method. For example, 'hello' should return 'olleh'.

Starter code

Python
def reverse_string(s):
    # Your code here
    pass

print(reverse_string('hello'))  # Should print: olleh

Stuck on this challenge?

Let CodeForge AI help you find the solution.