You are on page 1of 1

3.

def electricity_bill():
    customer_id=int(input("enter the customer id"))
        name=input("enter the customer name")
            unit=int(input("enter the unit consumed"))
                if unit<200:
        electricity_bill=unit*1.20
                return electricity_bill

    elif unit<400:

        electricity_bill=unit*1.50
                return electricity_bill
    elif unit<600:
        electricity_bill=unit*1.80
                return electricity_bill

    else :
        electricity_bill=unit*2.0
                return electricity_bill
                print(electricity_bill())

You might also like