solutions

Reverse a string

Write a function reverse_string that receives a string and returns it reversed. Example:

reverse_string('Hello World')  # 'dlroW olleH'
reverse_string('Python')  # nohtyP

Test Cases

test with large string - Run Test

def test_with_large_string():
    assert reverse_string('Python is Awesome') == 'emosewA si nohtyP'

test with short string - Run Test

def test_with_short_string():
    assert reverse_string('Python') == 'nohtyP'