Human: if file changes then. Assistant: 
Here is a Python function to if file changes

# Enter the filename
filename = "test.txt"

# Calling the function
print((if_file_changes(filename)))

#Example Output
# True

#Remember to inspect code for bugs.