def addElementToListTableIfNotThere(element, key, listTable):
 if (key in listTable):
  elements = listTable[key]
  if (element not in elements):
   elements.append(element)
 else:
  listTable[key] = [element]

def addElementToListTableIfNotThere ( element , key , listTable ) : if ( key in listTable ) : elements = listTable [ key ] if ( element not in elements ) : elements . append ( element ) else : listTable [ key ] = [ element ]
add the value to the lists .