<human>:  Give me a Python function to get the file extension in Python.
<bot>:

# Enter the file path
file_path = "/home/rosey/Desktop/myfile.txt"

# Calling the function
print((get_file_extension(file_path)))

#Example Output
# .txt

#Remember to inspect code for bugs.