def threeNumComparison(a: float, b: float, c: float) -> list:
    """
    This function returns the list containing smallest and largest number respectively using the above arguments given by the user.

    Args: This function takes three arguments. 

    `a: float` : This argument accepts both `int(1 -> 1.0)` and `float(1.2 -> 1.2)` data types.
    
    `b: float` : This argument accepts both `int(1 -> 1.0)` and `float(1.2 -> 1.2)` data types.

    `c: float` : This argument accepts both `int(1 -> 1.0)` and `float(1.2 -> 1.2)` data types.
    """
    smallest = 0
    largest = 0
    if a > b and a > c:
        largest = a
        if b > c:
            smallest = c
        else:
            smallest = b

    elif b > a and b > c:
        largest = b
        if c > a:
            smallest = a
        else:
            smallest = c

    else:
        largest = c

    return list([smallest, largest])