Skip to content

Instantly share code, notes, and snippets.

@mmarj
Forked from maateen/cellular-tax-calc.py
Created August 30, 2016 13:26
Show Gist options
  • Save mmarj/c581d3f2f8226ec5d5e1bb4e71eaa81f to your computer and use it in GitHub Desktop.
Save mmarj/c581d3f2f8226ec5d5e1bb4e71eaa81f to your computer and use it in GitHub Desktop.
This will take a float number as input and show the total number with tax. (Bangladesh)
#/usr/bin/python3
print("Press 'Ctrl+C' to exit this tool.")
try:
while True:
print("\nPlease input price in BDT: ")
a = float(input())
b=a+((a*5)/100)
c=b+((b*15)/100)
d=c+((a*1)/100)
print("Total price with tax:", round(d, 2), "BDT")
except KeyboardInterrupt:
print("This tool has been exited successfully.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment