noAdults = int(raw_input("How many adults will come? ")) noChildren = int(raw_input("How many children will come? ")) ticketCost = int(raw_input("How much will the ticket be? ")) icecreamPrice = 19.99 beerPrice = 12.99 ticketTotal = ticketCost * (noAdults + noChildren) shoppingTotal = noAdults * (icecreamPrice + 4 * beerPrice) + noChildren * (2 * icecreamPrice) print "You will be left with:", ticketTotal - shoppingTotal