Convert string input to variabel

Hi all,

is there a option to use Grasshopper Python Node Input to create a variable.
I want to create a dictionary every time a node is created.

Thanks for Tips

You can use eval() to name a variable based on user input but this is dangerous as it allows code injection and it would be very easy to use a reserved python word or overwrite an existing method.
It would be better to create a dictionary key based on user input where the associated value is another dictionary mydict[input] = {}

AH this is a nice tip thanks a lot