#Created by Kyle Cheung- July 8, 2010. Licensed under the MIT/X11 license: http://www.opensource.org/licenses/mit-license.php#Meh, the outrageous prices of movie concessionssizes = [ 'small', 'medium', 'large', 'x-large' ]popcorn_prices = [ 4.75, 5.75, 6.75, 10.75 ]coke_prices = [ 3.25, 3.75, 4.25, 4.75 ] seven_up_prices = [ 3.00, 3.25, 3.75, 4.05 ]print("\nHi, how many I help you rip you off on expensive beverages and popcorn?\n")#because I can't for the life of me find out how to do multi-line print statementsdef inputSelection(): return int(input("Please enter the number of your selection: "))def printInvalidSelection(): print('You have entered an invalid number, please enter a correct number.')def size( product, price_list): print( 'Which size would you like for that ' + product + '?\n') for i in range( len( sizes)): print( 'Press ' + str(i + 1) + ' for the ' + sizes[ i ] + ' size ($' + str(price_list[ i ]) + ')') n = inputSelection() if (n > len( price_list )) or (n < 1): return 0 else: print( 'You have selected the ' + sizes[ n - 1 ] + ' size ' + product + '.\n') return price_list[ n - 1 ]def coke(): s = size( 'Coke', coke_prices) while s == 0: printInvalidSelection() s = size( 'Coke', coke_prices) return sdef sevenup(): s = size( '7-Up', seven_up_prices) while s == 0: printInvalidSelection() s = size('7-Up', seven_up_prices) return s##FIRST MENU-- POPCORN SIZE#This is the first choice menu for the size of popcorn. It will declare the variable popcornPrice to use for total price.#The user inputs their number, gets changed into an integer and matches up with appropriate variable number. If no proper variable is used it goes back up to the while loop. The popcornPrice variable will be used later to determine final price.popcornPrice = size( 'popcorn', popcorn_prices)while popcornPrice == 0: printInvalidSelection() popcornPrice = size( 'popcorn', popcorn_prices)#SECOND MENU -- GENERAL BEVERAGE -> SIZEaskGeneralBeverage = '''\nWhat beverage would you like? Press 1 for Coke (no diet for you woosies) Press 2 for 7-Up Press 3 for 7-11 GULP Slurpy ($4.00) Press 4 for bottled water which is worse than tap water.. Aquafina ($8.00)\n'''#User inputs number, goes to more indepth menus to get proper beverage size.while True: print(askGeneralBeverage) beverageGeneral = inputSelection() if beverageGeneral == 1: beveragePrice = coke() break if beverageGeneral == 2: beveragePrice = sevenup() break if beverageGeneral == 3: beveragePrice = 4 print('You have chosen the slurpy. Slurp steathily.\n') break if beverageGeneral == 4: beveragePrice = 8 print('You have chosen Aquafina. Very bad choice. You know how much plastic goes into these bottles?') break printInvalidSelection()#sneaky pricestax = (popcornPrice + beveragePrice) * 0.0925surcharge = 2.00print('\nThe popcorn cost $' + str(popcornPrice) + ' and your beverage cost $' + str(beveragePrice) + ' with a tax of $' + str(tax) + '. Your final total including a $2.00 surcharge is, $' + str(popcornPrice + beveragePrice + tax + surcharge) + '. Thanks for purchasing your grub here!')#and that's your average concession stand ladies and gentlemen!