Sure, the documentation you provided mentions that you're getting errors while using the .copy() function. The reason you might be getting errors is because the .copy() method creates a shallow copy of the dictionary. This means that the new dictionary contains references to the same objects as the original dictionary. If you modify the copied dictionary, the changes will also be reflected in the original dictionary.
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member. Thanks!
I want to create a dict, and then create a copy/clone of that dict.
{% set dict = { "a": 1 } %}
{% set copy_of_dict = dict %}
But this code doesn't create two unique dicts, it just assigns the first dict to another variable. And so if I were to append data to either `dict` or `copy_of_dict`, they would both be updated which I do not want.