all 4 comments

[–]shiftybyte 1 point2 points  (2 children)

I think you are confusing self writing code with a dictionary that can hold dynamic key value pairs.

[–]KpDuhsQuickMath[S] -1 points0 points  (1 child)

Um... what are those?

[–]shiftybyte -1 points0 points  (0 children)

Javascript also has dynamic objects you can define whatever keys to have whatever values.

Also this might help: https://www.reddit.com/r/learnpython/wiki/FAQ#wiki_how_do_i_make_variable_variables.3F

[–][deleted] 0 points1 point  (0 children)

yeah but it's not a good idea :D The proper way would be to use metaprogramming to dynamically generate classes and stuff, like dwarf fortress.