Apr-20-2017, 03:07 PM
(Apr-20-2017, 03:01 PM)dannyH Wrote: Many thanks for that - I don't think I would ever have found it without help.
It doesn't immediately solve my problem, as the new square is actually filled with 100 different initial values - the example I gave was the shortest code that exhibited the problem. At least I know where to look now.
Your are welcome.
And you may use
copy.deepcopy
- if you want to use list of some fixed initial values for you square
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.