Question: Python !! Define a function called calculateDiscount that has two parameters, price and percent . price represents the full price of an item, and percent
Python !!
Define a function called calculateDiscount that has two parameters, price and percent. price represents the full price of an item, and percent represents the discount percentage as an integer. The function will print the discounted price.
Exercise 4) Redefine the calculateDiscount function in #3 to return the value of the discounted price calculated instead of printing it out.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
