0 out of 464 challenges solved

Check Unique Elements

Write a Python function `all_unique(test_list)` that checks if all elements in a given list are unique. The function should return `True` if all elements are unique, and `False` otherwise.

#### Example Usage
```python [main.nopy]
print(all_unique([1, 2, 3]))  # Output: True
print(all_unique([1, 2, 1, 2]))  # Output: False
print(all_unique([1, 2, 3, 4, 5]))  # Output: True
```
def all_unique(test_list):
    """
    Check if all elements in the list are unique.

    Args:
        test_list (list): The list to check.

    Returns:
        bool: True if all elements are unique, False otherwise.
    """
    # Placeholder for the solution
    pass