5 Replies - 952 Views - Last Post: 24 May 2012 - 02:48 PM Rate Topic: -----

#1 Trolling  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 20-May 12

Can you show me what need to work on and the python doccuments to see

Posted 22 May 2012 - 03:19 PM

#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()



Is This A Good Question/Topic? 0
  • +

Replies To: Can you show me what need to work on and the python doccuments to see

#2 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,303
  • Joined: 28-March 11

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.
Was This Post Helpful? 0
  • +
  • -

#3 Trolling  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 20-May 12

Re: Can you show me what need to work on and the python doccuments to see

Posted 22 May 2012 - 03:52 PM

View PostGunnerInc, 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
Was This Post Helpful? 0
  • +
  • -

#4 atraub  Icon User is offline

  • Pythoneer
  • member icon

Reputation: 759
  • View blog
  • Posts: 2,010
  • Joined: 23-December 08

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.
Was This Post Helpful? 0
  • +
  • -

#5 Tayacan  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 145
  • View blog
  • Posts: 275
  • Joined: 18-January 11

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 ;)
Was This Post Helpful? 1
  • +
  • -

#6 Trolling  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 20-May 12

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1