def removeTrueFromDictionary(dictionary, key):
 if (key in dictionary):
  if getBooleanFromValue(dictionary[key]):
   del dictionary[key]

def removeTrueFromDictionary ( dictionary , key ) : if ( key in dictionary ) : if getBooleanFromValue ( dictionary [ key ] ) : del dictionary [ key ]
remove key from the dictionary in the value is true .