A Python function to check if two given lines are parallel.
Write a function that determines whether two given lines in a 2D plane are parallel or not. The lines are represented by their coefficients in the format ax + by = c. ### Parameters - `line1`, `line2`: These are lists, each containing three integers. They represent the coefficients of a line in the format ax + by = c in a 2D plane. Here, `a` and `b` are non-zero integers, and `c` is any integer. ### Return Value - The function returns `True` if the two lines are parallel, `False` otherwise. ### Examples ```python # Line1: x+2y=3 and Line2: x+2y=4 are parallel print(are_lines_parallel([1, 2, 3], [1, 2, 4])) # Output: True # Line1: 2x+4y=1 and Line2: 4x+2y=1 are not parallel print(are_lines_parallel([2, 4, 1], [4, 2, 1])) # Output: False # Identical lines are considered parallel print(are_lines_parallel([0, 1, 5], [0, 1, 5])) # Output: True ```