Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
Write discounted_price(price, percent_off):
price is the original price (a number, e.g. float).percent_off is how many percent to take off (e.g. 25 means 25% off).After the function, print the result of at least two test calls (you can hard-code the numbers; input is optional).
Skills: return, arithmetic with percentages.