def main():
item_one = input('Enter the cost of item one: ')
item_two = input('Enter the cost of item two: ')
item_three = input('Enter the cost of item three: ')
item_four = input('Enter the cost of item four: ')
item_five = input('Enter the cost of item five: ')
subtotal(item_one,item_two,item_three,item_four,item_five)
tax = input('Enter the amount of tax for the five items: ')
tax_total(subtotal,tax)
def subtotal(item_one,item_two,item_three,item_four,item_five):
subtotal = item_one + item_two + item_three + item_four + item_five
print 'The subtotal is ' ,subtotal , 'dollars '
def tax_total(subtotal,tax):
tax_total = subtotal * tax
print 'The tax total is ' , subtotal
main()
This post has been edited by atraub: 12 July 2012 - 06:30 PM

New Topic/Question
Reply



MultiQuote








|