0 out of 464 challenges solved
Write a function `interleave_lists(list1, list2, list3)` that takes three lists of the same length and interleaves their elements into a single flat list. The function should return a new list where elements from the input lists are interleaved in the order they appear. #### Example Usage ```python [main.nopy] interleave_lists([1, 2, 3], [4, 5, 6], [7, 8, 9]) # Output: [1, 4, 7, 2, 5, 8, 3, 6, 9] interleave_lists(['a', 'b'], ['c', 'd'], ['e', 'f']) # Output: ['a', 'c', 'e', 'b', 'd', 'f'] ```
def interleave_lists(list1, list2, list3): """ Interleave three lists of the same length into a single flat list. Args: list1 (list): The first list. list2 (list): The second list. list3 (list): The third list. Returns: list: A new list with elements interleaved from the input lists. """ # Implement the interleaving logic here pass