def recipe_type(lst):
    """
    >>> recipe_type([])
    'No preference'
    >>> recipe_type(['vegetarian', 'meatarian','vegetarian', 'meatarian', 'meatarian'])
    'meatarian'
    >>> recipe_type(['vegetarian', 'meatarian','vegetarian'])
    'vegetarian'
    """
    meat = 0 # number of meatarians in list
    veg = 0  # number of vegetarians in list

    for i in range(len(lst)): # counts number of meatarians and vegetarians in list
        if lst[i] == 'meatarian':
            meat += 1
        else:
            veg += 1

    if meat > veg: # return based on results of loop above
        return 'meatarian'
    elif veg > meat:
        return 'vegetarian'
    return 'No preference'