SyntaxFix
Write A Post
Hire A Developer
Questions
This is the best way, I know of to create dynamic variables in python.
my_dict = {} x = "Buffalo" my_dict[x] = 4
I found a similar, but not the same question here Creating dynamically named variables from user input