编写一个函数，接受一个字符串并返回该字符串的反转版本（即逆序）。
def reverse_string(string):
    """Return the reverse order of the provided string"""
    # TODO: Implement this function.
```python
def reverse_string(string):
    return string[::-1]
```

或者可以使用循环迭代实现：


```python
def reverse_string(string):
    reversed_string = ""
    for i in range(len(string)-1, -1, -1):
        reversed_string += string[i]
    return reversed_string
```

这两种方法都可以返回输入字符串的反向版本。 The first method uses slicing to directly reverse the order of the string, while the second method iterates over the characters of the string in reverse order and appends them to a new string variable.