def updateMenuItem (theDictionary, item, price):
    """Update the price of item.

    :param dict[str, float] theDictionary:
        Dict containing menu items as keys and respective prices as
        prices.
    :param str item:
        The item whose price is to be updated.
    :param float or int price:
        The updated price of item.
    :return:
        True if item exists on the menu, else False.
    :rtype: bool
    """
    item = item.upper()
    price = round(float(price), 2)

    if item in theDictionary:
        theDictionary[item] = price
        return True

    return False

    # if item not in theDictionary:
    #     return False
    #
    # theDictionary[item] = price
    #
    # return True