Re: Calculate Bill

2016-03-30 Thread BartC
On 29/03/2016 23:33, Yum Di wrote: print ("Menu") print ( "1 = cheese and tomato: 3.50, " "2 = ham and pineapple: 4.20, " "3 = vegetarian: 5.20, " "4 = meat feast: 5.80, " "5 = seafood: 5.60 " ) Hey.. this code works. Sure, after you got rid of those list that were

Re: Calculate Bill

2016-03-29 Thread Steven D'Aprano
On Wed, 30 Mar 2016 09:33 am, Yum Di wrote: [...] > print ("Thank You for ordering at Pizza Shed! ") > > Hey.. this code works. However, i need it to calculate the total cost. > I dont know how to do that. Can someone help me.. > thanks Think about how people calculate the bill at a real pizza

Re: Calculate Bill

2016-03-29 Thread Chris Angelico
On Wed, Mar 30, 2016 at 9:33 AM, Yum Di wrote: > Hey.. this code works. However, i need it to calculate the total cost. > I dont know how to do that. Can someone help me.. > thanks It does indeed appear to work. And thank you for posting your current code. However... > print ("Welcome to Pizza S

Calculate Bill

2016-03-29 Thread Yum Di
import random import time print ("Welcome to Pizza Shed!") order = raw_input ("\n\nPLEASE PRESS ENTER TO ORDER." ) tablenum = input ("Enter table number from 1-25 \n ") while tablenum>25 or tablenum <=0: tablenum = input ("Enter the correct table number, there are only 25 tables ") #Pi