I'm trying to create a dictionary with 1 key that resolves multiple keys per value
my_key = 'a' or 'b'
d = {
my_key: 'example'
}
print(d.get('a'))
>> 'example'
print(d.get('b'))
>>
In the second case it doesn't work. I need to have the same value without replicating the key.
Update I'm trying to avoid the usual way like Brad Day described below:
d = {my_key1:"example", my_key2: "example"}