Skip to content

Instantly share code, notes, and snippets.

@yosefsadek
Created January 18, 2020 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosefsadek/8aa3fdd3fd5f3a2707f3c5718649d416 to your computer and use it in GitHub Desktop.
Save yosefsadek/8aa3fdd3fd5f3a2707f3c5718649d416 to your computer and use it in GitHub Desktop.
py
def calculate(price):
vat = price * 0.2
return vat
amount = float(input("Enter a price: "))
print("The VAT is £{:.2f}".format(calculate(amount)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment