Is there a way to reflect changes to a variable in the reference?
Here's a small reproducible example:
This outputs:
When I want it to output
My logic was that because
This outputs:
When I want it to output
My logic was that because
q1 is a reference to mylist.list , whenever I change mylist.list, it should also be reflected in q1. But it seems q1 is copying the value instead of taking a reference? Am I misunderstanding how references work as a whole?