This Python script calculates the final price of an item after applying a discount β but only if the discount is 20% or more.
- User enters the original price and discount percentage
- If the discount is >= 20%, it's applied
- Otherwise, the original price is returned
- Invalid input is handled gracefully
Enter the original price: 100
Enter the discount percentage: 25
Discount applied! Final price: $75.00
Enter the discount percentage: 15
No discount applied. Final price: $100.00
discount_calculator.py
: Core script
Augusto Mate
π§ mate.augusto.mz@gmail.com
This project is licensed under the MIT License.