Create a Python function for reversing a string.
string = "hello world!"
def reverse_string(string):
    string = string[::-1]
    return string

result = reverse_string(string)
print(result) # output -> "!dlrow olleh"