input: Write a python function to square a number, raising a ValueError for negative inputs.
  assert square(5) == 25
  assert square(0) == 0
  assert square(10) == 100
  assert square(-3) == ValueError('Cannot square negative numbers.')
output: def square(number):
      if number < 0:
          raise ValueError('Cannot square negative numbers.')
      return number ** 2