def float_input(num):
    """ Takes an input and tries to convert it into a float

    Parameters
    ___________
    :param num:  int/float: a number

    Returns
    ___________
    :return: The number as a float
    """

    # Try to convert the number you put in
    try:
        num = float(num)
    # If converting it returns a ValueError, print statement
    except ValueError:
        print('You entered an invalid number')

    return num