def xorGate(argumentValues):
  """
    Method that evaluates the XOR gate
    The XOR gate gives a true (1 or HIGH) output when the number of true inputs is odd.
    https://electronics.stackexchange.com/questions/93713/how-is-an-xor-with-more-than-2-inputs-supposed-to-work
    @ In, argumentValues, list, list of values
    @ Out, outcome, float, calculated outcome of the gate
  """
  if argumentValues.count(1.) % 2 != 0:
    outcome = 1
  else:
    outcome = 0
  return outcome