PythonEasyString Manipulation

Reverse a String

Write a function that takes a string and returns it reversed. For example, 'hello' should return 'olleh'.

Starter code

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

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

Stuck on this challenge?

Let CodeForge AI help you find the solution.