#try to avoid input function
a = int(input("Enter current bill units :"))
b = input("Enter type of area(urban or rural) :")
if a > 0 and a <= 50:
if b == "urban":
print("Your current bill is ",float(a*2.5))
else:
print("Your current bill is",float(a*2))
elif a > 50 and a < 100:
if b == "urban":
print("Your current bill is ",float(a*3.25))
else:
print("Your current bill is",float(a*3))
elif a >= 100:
if b == "urban":
print("Your current bill is ",float(a*4.5))
else:
print("Your current bill is",float(a*4))
else:
print("Invalid input.")
Click the run button. Try to avoid input() function.