human
test if binary file.
assistant
Here is a Python function to test if a binary file is a binary

import os

def is_binary(filename):
    """
    Test if a file is a binary file.
    """
    return filename.endswith('.bin')

# Enter the filename
filename = "myfile.txt"

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

#Example Output
# False

#Remember to inspect code for bugs.