When we invoke dostuff which has a tuple then the tuple is copied as Section of the += Procedure and so b is unaffected. Nonetheless after we invoke it using a record the checklist is modified in position, so both a and b are impacted. In python 3, identical behaviour https://spirou592lsy3.techionblog.com/profile