





"""simple docstring"""






from __future__ import annotations

def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE							)		->       dict[str, float]:






       """simple docstring"""




       if (voltage, current, resistance).count(0							) != 1:
              raise ValueError('One and only one argument must be 0'							)
       if resistance < 0:
              raise ValueError('Resistance cannot be negative'							)
       if voltage == 0:
              return {"voltage": float(current * resistance							)}
       elif current == 0:
              return {"current": voltage / resistance}
       elif resistance == 0:
              return {"resistance": voltage / current}
       else:
              raise ValueError('Exactly one argument must be 0'							)


if __name__ == "__main__":
    import doctest

    doctest.testmod()













"""simple docstring"""






def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE							)		->       str:






       """simple docstring"""




       if a < 0 or b < 0:
              raise ValueError('the value of both inputs must be positive'							)

       _UpperCAmelCase     =     str(bin(SCREAMING_SNAKE_CASE							)							)[2:]  # remove the leading "0b"
       _UpperCAmelCase     =     str(bin(SCREAMING_SNAKE_CASE							)							)[2:]  # remove the leading "0b"

       _UpperCAmelCase     =     max(len(SCREAMING_SNAKE_CASE							),len(SCREAMING_SNAKE_CASE							)							)

       return "0b" + "".join(
           str(int(char_a == '1' and char_b == '1'							)							)
           for char_a, char_b in zip(a_binary.zfill(SCREAMING_SNAKE_CASE							),b_binary.zfill(SCREAMING_SNAKE_CASE							)							)							)


if __name__ == "__main__":
    import doctest

    doctest.testmod()






