Simple question - stock market simulation
Hendrik van Rooyen
mail at microcorp.co.za
Mon Feb 9 02:48:55 EST 2009
"cptn.spoon" <cp....on at gmail.com> wrote:
On Feb 9, 3:58 pm, Paul Rubin <http://phr...@NOSPAM.invalid> 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
More information about the Python-list
mailing list