Re: [Tutor] lunch.py

2006-02-07 Thread Ian Jones
In article <[EMAIL PROTECTED]>, Christopher Spears <[EMAIL PROTECTED]> wrote: > When I run the program, I get the following error [snip] The simple mechanical error is that when you're substituting more than one value, you need to wrap the value list in parens: print "%s, I want, %s plea

Re: [Tutor] lunch.py

2006-02-07 Thread Sean Perry
Christopher Spears wrote: > I'm working on a program where a Customer orders Food > from an Employee. Here is what I have so far: > > class Food: > def __init__(self, name): > Food.foodName = name > what you want here is 'self.name = name' then in your code later you can do:

[Tutor] lunch.py

2006-02-07 Thread Christopher Spears
I'm working on a program where a Customer orders Food from an Employee. Here is what I have so far: class Food: def __init__(self, name): Food.foodName = name class Customer: def __init__(self,name): Customer.name = name def placeOrder(self