def check_num_list(prompt: str, max_length: int=0, min_length: int=0) -> List[float]:
    'Function to check if users input is a number, splitting number\n    by spaces and checking that the correct amount of numbers are\n    entered, returning them in a list'
    while True:
        try:
            num = input(prompt)
            num = num.split(' ')
            if min_length:
                assert (len(num) >= min_length), f'Please enter at least {min_length} numbers'
            if max_length:
                assert (len(num) <= max_length), f'Please enter no more than {max_length} numbers'
            for (index, value) in enumerate(num):
                num[index] = float(value)
            return num
        except Exception as e:
            print(e)
Function to check if users input is a number, splitting number
by spaces and checking that the correct amount of numbers are
entered, returning them in a list
def check_num_list(prompt: str, max_length: int=0, min_length: int=0) -> List[float]:
    'Function to check if users input is a number, splitting number\n    by spaces and checking that the correct amount of numbers are\n    entered, returning them in a list'
    while True:
        try:
            num = input(prompt)
            num = num.split(' ')
            if min_length:
                assert (len(num) >= min_length), f'Please enter at least {min_length} numbers'
            if max_length:
                assert (len(num) <= max_length), f'Please enter no more than {max_length} numbers'
            for (index, value) in enumerate(num):
                num[index] = float(value)
            return num
        except Exception as e:
            print(e)