def addElementToListDictionary(element, key, listDictionary):
 if (key in listDictionary):
  listDictionary[key].append(element)
 else:
  listDictionary[key] = [element]

def addElementToListDictionary ( element , key , listDictionary ) : if ( key in listDictionary ) : listDictionary [ key ] . append ( element ) else : listDictionary [ key ] = [ element ]
add an element to the list table .