comefrom: <doocs>0896.Monotonic Array_1.py
code: def isMonotonic( nums: List[int]) -> bool:
      isIncr = isDecr = False
      for i, v in enumerate(nums[1:]):
          if v < nums[i]:
              isIncr = True
          elif v > nums[i]:
              isDecr = True
          if isIncr and isDecr:
              return False
      return True
masked: def sample_funcname ( var_0 : List [ int ] ) -> bool :
      var_2 = var_1 = False
      for var_3 , var_4 in enumerate ( var_0 [ 1 : ] ) :
          if var_4 < var_0 [ var_3 ] :
              var_2 = True
          elif var_4 > var_0 [ var_3 ] :
              var_1 = True
          if var_2 and var_1 :
              return False
      return True
  