<human>:  Give me a Python code to locate an executable file on windows.
<bot>: Here is a Python code to locate executable files on windows

import os

def find_executable(path):
    """
    Finds the executable file in the given path.
    :param path: (str)
    :return: (str)
    """
    for root, dirs, files in os.walk(path):
      for file in files:
        if file.endswith('.exe'):
          return os.path.join(root, file)

# Enter the path
path = "C:\\Users\\
Rosey\\Desktop\\test.exe"

# Calling the function
executable_file = find_executable(path)

#Remember to inspect code for bugs.