def removeElementFromListTable(element, key, listTable):
 if (key not in listTable):
  return
 elementList = listTable[key]
 if (len(elementList) < 2):
  del listTable[key]
  return
 if (element in elementList):
  elementList.remove(element)

def removeElementFromListTable ( element , key , listTable ) : if ( key not in listTable ) : return elementList = listTable [ key ] if ( len ( elementList ) < 2 ) : del listTable [ key ] return if ( element in elementList ) : elementList . remove ( element )
remove an element from the list table .