"cptn.spoon" <[email protected]> wrote:

On Feb 9, 3:58 pm, Paul Rubin <http://[email protected]> wrote:

>Thanks Paul! I thought this might be the case. So how would I get the
>StockMarket class instance to contain many Stock class instances and
>then be able to iterate through them? I'm guessing the basic structure
>would be as follows...but I think I'm wrong:
>
>class StockMarket:
>  pass

No.
At this level, just use a list of instances of your Stock class.

- Hendrik


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to