In this post, we will write a Python program to calculate electricity bill by taking input from the user and also we will write this program by using function.