title: is there a way to write a one liner if-statement, involving for-statement on all items based on a specific value == False?
body: <p>I am trying to find an effective condition statement which executes code.</p>
  <p>I am looking at something along the lines of,</p>
  <pre><code>if for all in list[1]['purchased'] == False:
      main()
  </code></pre>
  <p>I Have items inside a list which are all nested lists.
  Each nested list consists of two dictionaries, whereby the 2nd dictionary has a KEY &quot;purchased&quot;. this is consistent for every item in the main list.</p>
  <p>Example:</p>
  <pre><code>Main_list = [[{'time': str, 'price': int},{'name': &quot;Bob&quot;, 'stock purchased': bool}], 
  [{'time': str, 'price': int}, {'name': &quot;Bob&quot;, 'stock purchased': bool}]]
  
  </code></pre>
  <p>Any help would be much appreciated!</p>
  <p>kindest regards,
  Andrew</p>