Description
Function Name: savvyShopper()
Parameters: fileName (str), shoppingMethod (str)
Returns: lowestPrice (tuple)
Description: Your friend wants to buy the cheapest costume but does not want to deal with shopping both online and in-person. Write a function that takes in the mode of desired shopping (Online or In-store) and returns a tuple of the cheapest costume available in that mode and its price. Assume there will not be two costumes with the same lowest price. If the mode of shopping or the file name is invalid, return (“”, 0).
>> savvyShopper(“costumeStore1.txt”, “Online”)
(‘Willy Wonka’, 19.99)
>> savvyShopper(“costumeStore1.txt”, “In-store”)
(‘Thanos’, 15.0)
Yizhe Gao –
Thank for your help and service. I really like the work that they did on my paper.
Melanie Villard –
The assignment was excellent and I have scored 100 percent. I am very proud and happy with you.
Nancy Del –
It was amazing work and in a very short time.
Erica Cupp –
Solution I got is great! Before deadline and is great with changes
Jose Gonzalez –
Great quality solution, Done way before time