What is the most self-descriptive way to define a function that calculates sales tax on a purchase?
D:
def calculate_sales_tax(subtotal): pass
C:
def sales_tax(amount): '''Calculates the sales tax of a purchase. Takes in a float representing the subtotal as an argument and returns a float representing the sales tax.'''
B:
def tx(amt): '''Gets the tax on an amount.'''
A:
def tax(my_float): '''Calculates the sales tax of a purchase. Takes in a float representing the subtotal as an argument and returns a float representing the sales tax.''' pass