+ 1
help needed regarding python class method/object
while trying to update one value in a set of lists every xth value updates to player in every yth sublist. i don't get my fault. can someone please explain? https://code.sololearn.com/cx46QgrTe67J/?ref=app thanks in advance!
1 Réponse
+ 1
found the solution at last
https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly
the generated sublists all refer to the first one and share one memory locstion