parameters: (self, nums)
return_statement: return result == 1
docstring: :type nums: List[int]
          :rtype: bool
docstring_summary: :type nums: List[int]
          :rtype: bool
docstring_tokens: : type nums : List [ int ] : rtype : bool
function: def isGoodArray(self, nums):
          """
          :type nums: List[int]
          :rtype: bool
          """
          def gcd(a, b):
              while b:
                  a, b = b, a%b
              return a
  
          # Bézout's identity
          result = nums[0]
          for num in nums:
              result = gcd(result, num)
              if result == 1:
                  break
          return result == 1
function_tokens: def isGoodArray ( self , nums ) : def gcd ( a , b ) : while b : a , b = b , a % b return a # Bézout's identity result = nums [ 0 ] for num in nums : result = gcd ( result , num ) if result == 1 : break return result == 1