def is_valid_input(barcode):
    """
    Checks if the user input is valid
    :param barcode: User input bar code
    :return: True or False
    """
    if  len(barcode) == 11 and barcode.isnumeric()==True and int(barcode) >= 0:  # Check for if the barcode is valid
        return True
    return False