input: Write a Python function to verify if a provided number is a perfect square.
  assert is_perfect_square(10) == False
  assert is_perfect_square(36) == True
  assert is_perfect_square(14) == False
output: def is_perfect_square(n):
      if n < 0:
          return False
      root = int(n**0.5)
      return root * root == n