Story
Jumbo Juice makes a fresh juice out of fruits of your choice.Jumbo Juice charges $5 for regular fruits and $7 for special ones. Regular fruits are Banana, Orange, Apple, Lemon and Grapes. Special ones are Avocado, Strawberry and Mango. Others fruits that are not listed are also available upon request. Those extra special fruits cost $9 per each. There is no limit on how many fruits she/he picks.The price of a cup of juice is the mean of price of chosen fruits. In case of decimal number (ex. $5.99), output should be the nearest integer (use the standard rounding function of your language of choice). 

Input
The function will receive an array of strings, each with the name of a fruit. The recognition of names should be case insensitive. There is no case of an enmpty array input.  


Example

```
['Mango', 'Banana', 'Avocado'] //the price of this juice bottle is (7+5+7)/3 = $6($6.333333...)
```

Difficulty: EASY
Starter code: def mix_fruit(arr):
	

Solutions:
def mix_fruit(arr):
	regular = ['banana', 'orange', 'apple', 'lemon', 'grapes']
	special = ['avocado', 'strawberry', 'mango']
	return round(sum((5 if fruit.lower() in regular else 7 if fruit.lower() in special else 9 for fruit in arr)) / len(arr))


costs = {'banana': 5, 'orange': 5, 'apple': 5, 'lemon': 5, 'grapes': 5, 'avocado': 7, 'strawberry': 7, 'mango': 7}

def mix_fruit(arr):
	return round(sum((costs.get(fruit.lower(), 9) for fruit in arr)) / len(arr))


def mix_fruit(arr):
	d = {'banana': 5, 'orange': 5, 'apple': 5, 'lemon': 5, 'grapes': 5, 'avocado': 7, 'strawberry': 7, 'mango': 7}
	return round(sum((d.get(i.lower(), 9) for i in arr)) / len(arr))


PRICES = dict(banana=5, orange=5, apple=5, lemon=5, grapes=5, avocado=7, strawberry=7, mango=7)

def mix_fruit(fruits):
	return round(sum((PRICES.get(fruit.lower(), 9) for fruit in fruits)) / len(fruits))


def mix_fruit(arr):
	d1 = {x: 5 for x in 'banana, orange, apple, lemon, grapes'.split(', ')}
	d2 = {x: 7 for x in 'avocado, strawberry, mango'.split(', ')}
	res = sum((d1.get(x.lower(), d2.get(x.lower(), 9)) for x in arr))
	return round(res / len(arr))


def mix_fruit(arr):
	arr = [x.lower() for x in arr]
	total = 0
	total_number_of_fruits = len(arr)
	for fruit in arr:
		if fruit in ['banana', 'orange', 'apple', 'lemon', 'grapes']:
			total += 5
		elif fruit in ['avocado', 'strawberry', 'mango']:
			total += 7
		else:
			total += 9
	answer = round(total / total_number_of_fruits)
	return answer


def mix_fruit(arr):
	prices = {'banana': 5, 'orange': 5, 'apple': 5, 'lemon': 5, 'grapes': 5, 'avocado': 7, 'strawberry': 7, 'mango': 7}
	return round(sum((prices[f.lower()] if f.lower() in prices else 9 for f in arr)) / len(arr))


from collections import defaultdict
from statistics import mean
prices = defaultdict(lambda : 9)
prices.update(dict.fromkeys(['banana', 'orange', 'apple', 'lemon', 'grapes'], 5))
prices.update(dict.fromkeys(['avocado', 'strawberry', 'mango'], 7))

def mix_fruit(arr):
	return round(mean((prices[fruit.lower()] for fruit in arr)))


from statistics import mean
regular = 'Banana Orange Apple Lemon Grapes'
special = 'Avocado Strawberry Mango'
extra = ''
menu = {regular: 5, special: 7, extra: 9}
prices = {juice: price for (juices, price) in menu.items() for juice in juices.split()}

def mix_fruit(order):
	return round(mean((prices.get(juice.title(), menu[extra]) for juice in order)))


def mix_fruit(arr):
	Regular = ['banana', 'orange', 'apple', 'lemon', 'grapes']
	Special = ['avocado', 'strawberry', 'mango']
	cost = []
	for fruit in arr:
		fruit = fruit.lower()
		if fruit in Regular:
			cost.append(5)
		elif fruit in Special:
			cost.append(7)
		else:
			cost.append(9)
	return round(sum(cost) / len(cost))