Question: python can dictionary keys be variables?
Answer: Anything which can be stored in a Python variable can be stored in a dictionary value. That includes mutable types including list and even dict — meaning you can nest dictionaries inside on another. In contrast keys must be hashable 1 and immutable — the object hash must not change once calculated.