parameters: (self, A)
return_statement: return not inc or not dec
docstring: :type A: List[int]
          :rtype: bool
docstring_summary: :type A: List[int]
          :rtype: bool
docstring_tokens: : type A : List [ int ] : rtype : bool
function: def isMonotonic(self, A):
          """
          :type A: List[int]
          :rtype: bool
          """
          inc, dec = False, False
          for i in xrange(len(A)-1):
              if A[i] < A[i+1]:
                  inc = True
              elif A[i] > A[i+1]:
                  dec = True
          return not inc or not dec
function_tokens: def isMonotonic ( self , A ) : inc , dec = False , False for i in xrange ( len ( A ) - 1 ) : if A [ i ] < A [ i + 1 ] : inc = True elif A [ i ] > A [ i + 1 ] : dec = True return not inc or not dec