0 out of 464 challenges solved

Split List into Two Lists

Write a Python function `split_lists` that takes a list of sublists, where each sublist contains exactly two elements, and returns a list of two lists. The first list should contain the first elements of each sublist, and the second list should contain the second elements of each sublist.

#### Example Usage
```python [main.nopy]
split_lists([[1, 2], [3, 4], [5, 6]])
# Output: [[1, 3, 5], [2, 4, 6]]

split_lists([['a', 'b'], ['c', 'd'], ['e', 'f']])
# Output: [['a', 'c', 'e'], ['b', 'd', 'f']]
```
def split_lists(lst):
    """
    Splits a list of sublists into two separate lists.

    Args:
        lst (list): A list of sublists, where each sublist contains exactly two elements.

    Returns:
        list: A list containing two lists, one with the first elements and one with the second elements.
    """
    # Your code here
    pass