title: Loop sentences using return
body: <p>Im trying to loop through sentences and tags_to_label contains array of position of words in the sentence e.g: Adam lemmington ate an apple so tag_to_label = [1 2] position of the nouns in the sentence. Here im trying to return 1 if the length of tags_to_label &gt; 1 else 0 but my code only loops through one sentence, is there a way to loop through all the sentences?</p>
  <pre><code>for i, item in enumerate(tags_to_label): 
         if len(tags_to_label) &gt; 1:
          return 1
         else:
          return 0
  </code></pre>