human
Write me a Python function for checking in if two files are similar.
assistant
Here is a Python function for checking in if two files are similar

import sys

def similar(fn1, fn2):
    """
    Check if two files are similar

    Args:
        fn1 (str): Path to first file
        fn2 (str): Path to second file

    Return:
        True if files are similar, False otherwise
    """
    with open(fn1) as f1, open(fn2) as f2:
        for l1, l2 in zip(f1, f2):
            if l1!= l2:
                return False
    return True

# Enter the file names
fn1 ="purple skateboard"
fn2 ="purple skateboard"

# Calling the function
print((similar(fn1, fn2)))

#Example Output

# True

#Remember to inspect code for bugs.