Devin Dahlberg

Python: Assignment One

Objective:

  1. Assuming that the grocery tax in this Alabama city is 8% calculate and the amount of tax and total amount that you have to pay for $30 of groceries.
#Variables
groceries = 30.00
tax = .08
total_tax = groceries * tax
total_amount = groceries + total_tax

#Output
print ('Total Tax', total_tax)
print ('Total Amount Due', total_amount)

HW2P1