Why would we append our data rather than just modify the list?

Wouldn’t it be better practice to go back to the original coded list to add additional items? I feel like if you have a bunch of "append"s throughout the code and have to go back to adjust something it could be a headache to find and fix if you have 20 "append"s. Can someone with experience in the field shed some light on why this would be a useful command and why you wouldn’t just go back and edit the original?


If that were possible, yes, on the assumption we discover this data will be needed in all session runs. But programs are dynamic and lots of data is generated by the program (and user) that we couldn’t possibly foresee. That’s why we have mutation methods so our data structures can be updated on the fly, dynamically.