Skip to content

Instantly share code, notes, and snippets.

@katiayn
Last active January 23, 2017 22:38
Show Gist options
  • Save katiayn/fd9f84d7ac70c994ba4b6d83d098e52d to your computer and use it in GitHub Desktop.
Save katiayn/fd9f84d7ac70c994ba4b6d83d098e52d to your computer and use it in GitHub Desktop.
class VATCalculator(object):
def calculate_vat(self, **kwargs):
is_biscuit = kwargs['is_biscuit']
is_coated_in_chocolate = kwargs['is_coated_in_chocolate']
if is_biscuit and is_coated_in_chocolate:
return 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment