+ 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!

29th May 2018, 12:54 PM
error on line 1
error on line 1 - avatar
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
29th May 2018, 2:34 PM
error on line 1
error on line 1 - avatar