title: Sorting through list of lists?
body: <p>So I have a list of lists:</p>
  
  <p>nums = [[98, 90, 91], [46, 76, 62], [85, 90, 83], [77, 79, 81]]</p>
  
  <p>and I want to sort through them. When a number in a list(mini-lists) of the </p>
  
  <p>list(main list) is lower than a default I give in the argument, the function </p>
  
  <p>will return a list with either true or false for every list in the list. </p>
  
  <p>Example: [True, False, True, True]</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>def all_passing(nums, grade = 70):
   new = [] 
   for l in nums:
      boo = True
      for x in l:
         if x &lt;= grade:
            boo == False
            new.append(boo)
   return new 
  </code></pre>
  
  <p>Every time I run the code, my output is an empty list.</p>
  
  <p><strong>Edit: I fixed some things and now I'm getting closer to my solution, but it is returning True or 
  False for EVERY value in the list of lists. How do I make it so that the it only returns True or 
  False for the individual lists. 
  Example: [98, 90, 91] would be set to True. [46, 76, 62] would be set to False 
  since an x in the list is lower than 70. Same thing for the other lists.</strong></p>
  
  <p><strong>Edit: I got to work, I indented the append line to the same indentation of the second for loop, now I understand how it works. Thank you!!!</strong></p>