def has_item(item: str, character: dict):
    """
    Check if character has the item.

    :param item: a string
    :param character: a dictionary
    :precondition: character must be a valid character created by character_creation function
    :postcondtition: returns True if item in character["Inventory"] and the amount of character["Inventory"][item] > 0,
                     else False
    :return: True if item is present, otherwise False

    >>> has_item("Bandage", {"Inventory": {"Bandage": 5}})
    True
    >>> has_item("Torch", {"Inventory": {"Anything else": 10000}})
    False
    """
    return item in character["Inventory"].keys() and character["Inventory"][item] > 0