dictionaries dictionary is more general version of list here is list that contains the number of days in the months of the yeardays [ if we want the number of days in januaryuse days[ december is days[ or days[- here is dictionary of the days in the months of the yeardays 'january ': 'february ': 'march ': 'april ': 'may ': 'june ': 'july ': 'august ': 'september ': 'october ': 'november ': 'december ': to get the number of days in januarywe use days['january'one benefit of using dictionaries here is the code is more readableand we don' have to figure out which index in the list given month is at dictionaries have number of other usesas well basics creating dictionaries here is simple dictionaryd ' ': ' ': to declare dictionary we enclose it in curly braces{each entry consists of pair separated by colon the first part of the pair is called the key and the second is the value the key acts like an index so in the first pair' ': the key is ' 'the value is and [' 'gives keys are often stringsbut they can be integersfloatsand many other things as well you can mix different types of keys in the same dictionary and different types of valuestoo changing dictionaries let' start with this dictionaryd ' ': ' ':