This Python script calculates the final price of an item after applying a discount.
If the discount percentage is 20% or higher, the discount is applied; otherwise, the original price is returned.
- Run the script:
python calculate_discount.py
- Enter the original price when prompted.
- Enter the discount percentage when prompted.
- The script will display the final price after applying the discount, or the original price if the discount is less than 20%.
Enter the original price: 100
Enter the discount percentage: 25
Final price after 25.0% discount: 75.00
- If you enter a non-numeric value, the script will display an error message.
- Python 3.x