+ 1

Why adding to specific index to a list result adding to all the indexes

https://code.sololearn.com/clhei9EJ2qQL/?ref=app

8th Dec 2017, 4:06 AM
Rafee Muhammad
Rafee Muhammad - avatar
3 ответов
+ 1
I forget what it is called but there's something within python that remembers the *3 at the creation of your matrix. It applies that multiplication to all subsequent instructions.
8th Dec 2017, 5:21 AM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar
0
@Grahambo would you give me any link that explains it
8th Dec 2017, 8:07 AM
Rafee Muhammad
Rafee Muhammad - avatar
0
https://docs.python.org/2/library/stdtypes.html#sequence-types-str-unicode-list-tuple-bytearray-buffer-xrange
8th Dec 2017, 8:41 AM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar