#Prices of pizza
# gourmet = 13.50
# regular = 8.50
print ('Hello and welcome')
print ('As the customer you have a option of the pizza Delivery or Pickup')
def pizza ():
pass
while True:
try:
Answer = (input ('''
Would you like Delivery or Pickup ?
''' ))
if Answer == 'Delivery':
Address = (input ('Please put address in : '))
Post = (int (input('Please place Post code here : ')))
break
if Answer == 'Pickup':
print ('Please put Name and Phone number in : ')
Name = (input('place name here : '))
Number = (int (input ('Place Phone number here : ')))
break
except ValueError:
pass
print ('The please type Delivery or pickup')
pizza()
def price():
pass
while True:
try:
Menu = (input('''
Would you like to see the menu's
Gourmet menu
Regular menu
pizza for all the pizza's
Which would you like to see ?
'''))
if Menu == 'Gourmet menu':
gourmet = print['Gourmet menu $13.50 per pizza'
'Hawaiian', 'Cheese Extreme', 'Tomato Margherita', 'Pepperoni', 'Ham and Cheese']
break
if Menu == 'Regular menu':
regular = print['Regular menu $8.50 per pizza'
'Veg delight', 'Beef and onion', 'classic italian', 'Cheese and Mushroom'
'Meat lovers', 'Super supreme', 'Hot and spicy']
break
if Menu == 'Pizza menu':
pizza = print(['Gourmet menu $13.50 per pizza'
'Hawaiian', 'Cheese Extreme', 'Tomato Margherita', 'Pepperoni' 'Ham and Cheese']
['Regular menu $8.50 per pizza'
'Veg delight', 'Beef and onion', 'classic italian', 'Cheese and Mushroom',
'Meat lovers', 'Super supreme', 'Hot and spicy'])
break
except:
pass
print ('Try again')
price()
5 Replies - 615 Views - Last Post: 24 May 2012 - 02:48 PM
#1
Can you show me what need to work on and the python doccuments to see
Posted 22 May 2012 - 03:19 PM
Replies To: Can you show me what need to work on and the python doccuments to see
#2
Re: Can you show me what need to work on and the python doccuments to see
Posted 22 May 2012 - 03:33 PM
You have a previous post that was removed because you didn't post enough information for us to help you... What errors are you getting? What output are you getting? What output are you expecting? As for documentation, the Internet is your friend.
#3
Re: Can you show me what need to work on and the python doccuments to see
Posted 22 May 2012 - 03:52 PM
GunnerInc, on 22 May 2012 - 03:33 PM, said:
You have a previous post that was removed because you didn't post enough information for us to help you... What errors are you getting? What output are you getting? What output are you expecting? As for documentation, the Internet is your friend.
I was just interested if it would be possible to get some advice for python and look at other reply to the code for what i need to work on
#4
Re: Can you show me what need to work on and the python doccuments to see
Posted 22 May 2012 - 05:14 PM
With a handle like Trolling, I can't tell if this post is really well disguised trolling or just really bad English.
But, I'll bite, here's the most basic of the basic.
input("") is bad if you're using python2 but fine if it's python 3.
print['Regular menu $8.50 per pizza''Veg delight', 'Beef and onion', 'classic italian', 'Cheese and Mushroom''Meat lovers', 'Super supreme', 'Hot and spicy'] won't run. If it's Python2, your only problem is a missing comma before veg delight and meat lovers. If it's python3, the entire thing should be inside parenthesis.
You also should use functions to contain the main code.
But, I'll bite, here's the most basic of the basic.
input("") is bad if you're using python2 but fine if it's python 3.
print['Regular menu $8.50 per pizza''Veg delight', 'Beef and onion', 'classic italian', 'Cheese and Mushroom''Meat lovers', 'Super supreme', 'Hot and spicy'] won't run. If it's Python2, your only problem is a missing comma before veg delight and meat lovers. If it's python3, the entire thing should be inside parenthesis.
You also should use functions to contain the main code.
#5
Re: Can you show me what need to work on and the python doccuments to see
Posted 24 May 2012 - 05:15 AM
You should also look up what pass does, and take a closer look at if-elif-else, as should that other guy who appears to be writing the same program - this looks like a school assignment.
@atraub - at least he's not just asking for free code
@atraub - at least he's not just asking for free code
#6
Re: Can you show me what need to work on and the python doccuments to see
Posted 24 May 2012 - 02:48 PM
I Can't find the problem with the Menu option's the pizza's are not printing when Gourmet, Regular and pizza are used in input
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote








|