title: Python function that returns true if 2 integers are coprime
body: <p>I need some help to find my bugs in this function:</p>
  <pre><code>
  def is_coprime(num_1, num_2):
      &quot;&quot;&quot;Function that returns true if 2 integers are coprime. &quot;&quot;&quot;
      if num_1 &gt; num_2:
          small = num_2
      else:
          small = num_1
      for i in range(1, small + 1):
          if ((num_1 % i == 0) and (num_2 % i != 0)):
              gcd = i
          if (gcd == 1):
              return True
          else:
              return False
  
  </code></pre>
  <p>Hope the indentation isn't so bad. I think my mistake is in the if-condition, but I can't figure out what.</p>