I'm questioning my reason for why the follwoing code doesn't behave as I
thought it would upon first coding a project.
m = 8
n = 10
cb = [[[0, None]] * (n + 1)] * (m + 1)
cb[3][2][0] = 10
This last statement causes the every first element in the list to update. Is
this becuase this metho
> Good point. It is important to state your goal for the code, preferably
> in comments in your code, as well as in the message asking us the
> question. Suggest you include a doc-string for each class and method
> declaration.
>
> But it's important to tell us how you expect to use it, as wel
not exactly optimal, one could easily replace the
> reversed(xrange()) expression with a 3 parameter version of xrange:
> for i in xrange(len(x) - 1, 0, -1):
>
> Andreas
>
>
>
> Am Samstag, den 25.07.2009, 17:15 -0700 schrieb Darth Kaboda:
> > I'm starting to learn
I'm starting to learn Python as it seems to be adopted by many companies that
I've been looking to apply to. I used the book Learning Phython to get the
basics of the language and many of the gotcha's. I think I know enough of the
basic features of the language to start playing around and can u