input: Write a python function to convert a binary number (as a string) to its decimal equivalent.
  assert binary_to_decimal('1010') == 10
  assert binary_to_decimal('1111') == 15
  assert binary_to_decimal('100000') == 32
output: def binary_to_decimal(binary_str):
      return int(binary_str, 2)