With lists, += is actually a little different.
this is just weird here in lists
With lists, += is actually a little different.
this is just weird here in lists
If you concatenate a list with 2 items and a list with 4 items, you will get a new list with 6 items (not a list with two sublists). Similarly, repetition of a list of 2 items 4 times will give a list with 8 items.
very important in knowing that the list is now a new list not a combination of the two original lists meaning they are still not altered only a new list is created from the combination of them two not created per se but a new reference to a new list is created