Unit 4 Task 3: Price after discount

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Unit 4 Task 3 - Price after discount

← Unit 4 tasks · Solution


Write discounted_price(price, percent_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.