Question: Please use python method for coding. Please try coding without respective files. Function Name: plankton Parameters: dict - dictionary containing items as keys and total

Please use python method for coding. Please try coding without respective files. Please use python method for coding. Please try coding without respective files.

Function Name: plankton Parameters: dict - dictionary containing items as keys and total cost as values Return Value: None Description: This time Plankton has gone too far! Not only did he try to steal the secret formula, but he made it out with some of the secret ingredients! Well at least that's what he thought, Mr. Krabs actually switched out the ingredients! Write a function that takes in a dictionary containing the items Plankton stole and their corresponding prices. Using the input dictionary, find the total value of all the items in the dictionary. Then, find the item that is going to cost Mr. Krabs the most to replace, and the item that is going to cost Mr. Krabs the least to replace. Test Cases: >>> plankton({ 'spatula':30, 'hat':50, 'apron':46, 'Squidward':5}) Plankton stole $131 worth of stuff. The hat is worth $50 and is going to cost Mr. Krabs the most! The Squidward is worth $5 and is going to cost Mr. Krabs the least! >>> plankton({'grill':80, 'tie':24, 'customer':200, 'Spongebob':100}) Plankton stole $404 worth of stuff. The customer is worth $200 and is going to cost Mr. Krabs the most! The tie is worth $24 and is going to cost Mr. Krabs the least

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!