Question: PYTHON Two children have listed out the lavors of jellybeans that they found in the candy bags and want to make sure that they each
Two children have listed out the lavors of jellybeans that they found in the candy bags and want to make sure that they each received the same number of each flavor of bean. For this exercise you will wiite a function that will take each list of bean favors and will return True if the bags are equivalent and Falset the bags are different For example bagi = ['cherry", "non" "coconut cherry", "cherry", "coconut bag2 ["coconut", "cherry", "cherry cherry", Moon", "coconut Would result in True While bagi [cherry": "on", "coconut" "cherry", "cherry", "coconut") hag? ("coconut cherry"cherry "cherry" "coconut coconut Would result in False Full Screen Grading code.py O New der equivalent bags(b1,b2): return None laser NOE RUN nominout Tout NOT HUN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
