I have a dictionary like this:
d = {
   'yellow': ['C','A','F'], 
   'blue': ['D','A'],
   'brown': ['G','Z'],
   'red': ['F','T'],
   'green': ['Z','A']
}
I'm trying to get output like this:
{
    'blue': ['A','D'],
    'brown': ['G','Z'],
    'green': ['A','Z']}
    'red': ['F','T'],
    'yellow': ['A','C','F']
} 
I'm trying to sort key and value alphabetically. I've tried using modules to do this, but how to do it without using modules?
 
     
     
    