Skip to content

abbaimam3/week3_python_assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Week 3 Python Assignment

This repository contains the Week 3 assignment for Python programming.

Task

Create a function calculate_discount(price, discount_percent) that:

  • Applies a discount if it is 20% or higher.
  • Otherwise, returns the original price.

Then, prompt the user to enter the price and discount percentage, and print the final amount.

Example Run

Input: Enter the original price of the item: 1000 Enter the discount percentage: 25

Output:

The final price after 25% discount is: $750.00

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages