Whenever we invoke dostuff using a tuple then the tuple is copied as Component of the += operation and so b is unaffected. Nonetheless when we invoke it by using a list the list is modified in place, so equally a and b are impacted. In python three, similar behaviour https://angeloragnr.blogolenta.com/23603176/the-best-side-of-swith