input: from typing import List
  from itertools import pairwise
  
  def has_different_parity_adjacent(nums: List[int]) -> bool:
      """
      An array is considered unique if each pair of its adjacent elements consists of one even and one odd number.
  
      Given a list of integers nums, return true if nums is a unique array, otherwise, return false.
  
      Examples:
      >>> nums = [1]
      true
      >>> nums = [2,1,4]
      true
  
      Constraints:
      1 <= len(nums) <= 100
      1 <= nums[i] <= 100
      """
output:     for x, y in pairwise(nums):
          if (x % 2 == 0) == (y % 2 == 0):
              return False
      return True