I\'m looking for a way to create dictionary without writing the key explicitly I want to create function that gets number variables, and create dictionary where the variables na
You can use locals, but I would recommend against it. Do it explicitly.
>>> import this [...] Explicit is better than implicit. [...]
Your code will generally be better, more predictable, less prone to breaking and more comprehensible if you do it explicitly.