input: Write a python function to convert a binary number (as a string) to its decimal equivalent.
  assert binaryToDecimals("1010") == 10
  assert binaryToDecimals("1111") == 15
  assert binaryToDecimals("1001") == 9
output: def binaryToDecimals(binary_str):
      return int(binary_str, 2)