Created
January 18, 2020 00:20
-
-
Save yosefsadek/8aa3fdd3fd5f3a2707f3c5718649d416 to your computer and use it in GitHub Desktop.
py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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