title: assert function in python
body: <p>For a given code:</p>
  
  <pre><code>pattern = r'(?:some_pattern)'  
  def find(seq):
      ret = []
      while True :
          m= pattern_re.match(seq)
          if not m :
              break
          myseq= m.group(2)
          assert len(myseq)%3 == 0
          assert len(myseq) &gt; 6
          ret.append(myseq)
          pos = m.end()
          return ret
  
  sequence = 'some sequence'
  my_seq = find(sequence)
  </code></pre>
  
  <p>this returns ret in which only first assert function is taken and not the second . Any solution for it ?</p>
  
  <p>the question simply is how to make code consider both the assert function  </p>