Question: In python! def updatePrice(pricePercent, listOfItems): (20 points) Function that takes a pricePercent value Returns a list with updated Items in price changed by pricePercent. and
def updatePrice(pricePercent, listOfItems): (20 points) Function that takes a pricePercent value Returns a list with updated Items in price changed by pricePercent. and a list of Items. listofItems with the original is $2.00 and pricePercent is 50, then is $2.00 and pricePercent $1.00 - For example, if the price of an item the updated price is $3.00. If an item is -50, then the resulting price is Hint: Recall that namedtuples are IMMUTABLE types and we cannot simply change a namedtuple attribute. See the pdf slides for lecture 9 and 10 on how we an update namedtuple attributes using the constructing a new namedtuple object return "stub" ._replace method or
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
