#!/usr/bin/env python # # program used to compute the total cost of user specified # number of items with a unit price of $15 # # written by e.bonakdarian feb 2010 # # cost_calc1.py # print 'Computing total cost for items (priced $15 per piece).' number = input('\nEnter number of items purchased: ') # compute total cost total_cost = number * 15 # print result print 'At $15 per item, %d item(s) will cost $%.2f.' % (number, total_cost) raw_input('\nHit to exit.')