Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

Which statements are true for volunteer computing?

Answered: 1 week ago

Question

What is polarization? Describe it with examples.

Answered: 1 week ago