# else if in python

Python Program to get price and quantity of a product, calculate bill amount, calculate 10% discount for the bill amount 5000 and above, 5% discount for the bill amount 1000 and above.

Sample Input 1:

10 400

Sample Output 1:

3800

Sample Input 2:

10 500

Sample Output 2:

4500

#### Program or Solution

#### Program Explanation

chained conditional check is used here to check whether amount is greater than 5000 or greater than 10000. any one of the expression to calculate discount will be executed.