I\'m wondering if there\'s any way to populate a dictionary such that you have multiple keys mapping to the same value that\'s less verbose than say:
d = {1:
dict((x, {4: 'no'}.get(x, 'yes')) for x in range(1, 5))
Or in 3.x:
{x: {4: 'no'}.get(x, 'yes') for x in range(1, 5)}