```python
def test_distinct(data):
    """
    Determines if all numbers in a list are distinct.

    Args:
        data: A list of numbers.

    Returns:
        True if all numbers in the list are distinct, False otherwise.
    """
    # A set only stores unique elements.
    # If the length of the set is the same as the length of the original list,
    # it means there were no duplicate elements.
    return len(data) == len(set(data))

```