07Reverse a String

    Very easystringsslicing

    Write reverse(text) that returns text backwards. reverse("hello") is "olleh".

    Examples

    Example 1
    >>> reverse('hello')
    'olleh'
    Example 2
    >>> reverse('Python')
    'nohtyP'

    Run examples checks the 2 examples above. Submit runs all 6 tests, including hidden edge cases, and marks the challenge solved.

    solution.py
    Loading Python…

    Test results show up here

    Write reverse in the editor, then run the examples. Use print() freely: its output is shown for each test.