def get_file_extension(path):
    """returns the file extension of path"""
    if "." not in path:
        return ""
    else:
        return path.split(".")[-1].lower()
returns the file extension of path
bin/ls.py