<human>:  Give me a Python function to check if a number is complex in Python.
<bot>: Here is a Python function to check if a number is complex

import numpy as np

def is_complex(x):
  """
  Check if a number is complex.

  >>> is_complex(1)
  False
  >>> is_complex(1+1j)
  True
  """
  return isinstance(x, complex)

# Enter the number
x = 1

# Calling the function
print((is_complex(x)))

#Example Output
# False

#Remember to inspect code for bugs.