Skip to content

Instantly share code, notes, and snippets.

@maateen
Created August 30, 2016 10:58
Show Gist options
  • Save maateen/db81296c9a10dd245972e4e83f3b81c7 to your computer and use it in GitHub Desktop.
Save maateen/db81296c9a10dd245972e4e83f3b81c7 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