Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
When the following program runs, what is the value of the variable tax?
tax
def compute_total_price(subtotal, tax = 0.7): taxable = subtotal * tax total = subtotal + taxable return total print(compute_total_price(12.00, 0.8))
0.7
0.8
9.6
21.6