# ask the user for an item item = input("What would you like to purchase? ") # how many do they want to purchase? note that we need to convert their # response from a string into an integer quantity = int(input("How many would you like to buy? ")) # how much does each item cost? again we need to convert from a string into floating point value unit_price = float(input("How much does each item cost? ")) # compute total total = quantity * unit_price # output print (quantity, item, "will cost you", total)