yes, your understanding is correct. Append modify the list in place, so you change the object that has 3 references to it. While in the former case you assign new different object to index 0.
List repetition
List repetition
|
|
Messages In This Thread |
List repetition - by ashwin - May-24-2017, 10:35 AM
RE: List repetition - by buran - May-24-2017, 11:43 AM
RE: List repetition - by wavic - May-24-2017, 11:46 AM
RE: List repetition - by snippsat - May-24-2017, 12:57 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Way to avoid repetition? | Tuxedo | 5 | 4,112 |
Feb-16-2021, 08:02 PM Last Post: Tuxedo |
|
question about you want repetition this task | loczeq | 6 | 4,538 |
Mar-05-2020, 08:35 PM Last Post: loczeq |
|
Random nr. no repetition & printing multiple lines | Joey | 7 | 3,972 |
Feb-05-2020, 04:23 PM Last Post: Larz60+ |
|
About generating N integer numbers without repetition | Otbredbaron | 3 | 4,649 |
Jan-30-2018, 12:08 PM Last Post: Otbredbaron |
Users browsing this thread: 1 Guest(s)