def find_routes(paths) -> list:
    """returns routes as tuple from path as list\
         like 1,2,3 --> (1,2)(2,3)"""
    routes = []

    for path in paths:
        for i in range(len(path)):
            try:
                route = (path[i], path[i + 1])
                if route not in routes:
                    routes.append(route)
            except IndexError:
                pass
    return routes