13/13 a question about increasing quantity of a item in list


#1

Is it possible legitemately increase bananas in shopping_list to 3 without typing "banana" 3 times in a list?

instead of
shopping_list = ["banana", "orange", "apple"]
to
shopping_list = [(3* "banana"), "orange", "apple"] => which is actually "bananabananabanana"


#2

You would need a dictionary or two matched lists to accomplish that.

EXAMPLE:

prices = {'banana': 0.75, 'apple': 0.50}
shopping_list = {'banana': 5, 'apple': 2}

#3

Would this work both ways?