## Python 3 Script to Calculate Electricity Household Bill Full Project For Beginners Welcome folks today in this blog post we will be `calculating electricity household bill.`All the full source code of the application is given below.

# Get Started

In order to get started you need to make an `app.py` file and copy paste the following code

`app.py`

``````# Python Program to Calculate Electricity Bill

units = int(input(" Please enter Number of Units you Consumed : "))

if(units < 50):
amount = units * 2.60
surcharge = 25
elif(units <= 100):
amount = 130 + ((units - 50) * 3.25)
surcharge = 35
elif(units <= 200):
amount = 130 + 162.50 + ((units - 100) * 5.26)
surcharge = 45
else:
amount = 130 + 162.50 + 526 + ((units - 200) * 8.45)
surcharge = 75

total = amount + surcharge
print("\nElectricity Bill = %.2f"  %total)``````

See also  Python 3 Script to Generate Random 10 Digit Mobile Number Using random Module Full Project For Beginners

Now if you execute the `python` script by typing the below command as shown below

`python app.py` 