human
check if executable exists in path.
assistant
Here is a Python program to check if executable exists in path

import os

def exists(path):
    """Check if executable exists in path."""
    return os.path.isfile(path)

# Enter the path
path = "/home/rosey/Desktop/test.py"

# Calling the function
print((exists(path)))

#Example Output
# False

#Remember to inspect code for bugs.