Can you create a Python function to interpolate a given string?
"Hello {{name}}"
def interpolate(str):
    return str.format(name="world")

input_str = "Hello {{name}}"
print(interpolate(input_str)) // Output: "Hello world"