Modify the following Python code to print the length of a given string.
string = "Hello World!"

def print_length(string):
    print(string)
string = "Hello World!"

def print_length(string):
    print(len(string))