dictionaries dictionary is like listbut more general in listthe index positions have to be integersin dictionarythe indices can be (almostany type you can think of dictionary as mapping between set of indices (which are called keysand set of values each key maps to value the association of key and value is called key-value pair or sometimes an item as an examplewe'll build dictionary that maps from english to spanish wordsso the keys and the values are all strings the function dict creates new dictionary with no items because dict is the name of built-in functionyou should avoid using it as variable name eng sp dict(print(eng sp{the curly brackets{}represent an empty dictionary to add items to the dictionaryyou can use square bracketseng sp['one''unothis line creates an item that maps from the key 'oneto the value "unoif we print the dictionary againwe see key-value pair with colon between the key and valueprint(eng sp{'one''uno'this output format is also an input format for exampleyou can create new dictionary with three items but if you print eng spyou might be surprisedeng sp {'one''uno''two''dos''three''tres'print(eng sp{'one''uno''three''tres''two''dos'