check if complex python code example Example: python check if number is complex >>> isinstance(1j, complex) True