title: make nested dict from list of chains (python)
body: <p>everyone. I have the structure like this:</p>
  <pre><code>data = [
      [&quot;apple&quot;, &quot;1 apple&quot;, &quot;2 apple&quot;],
      [&quot;lemon&quot;, &quot;1 lemon&quot;, &quot;2 lemon&quot;, &quot;3 lemon&quot;],
      [&quot;lemon&quot;, &quot;1 orange&quot;]
  ]
  </code></pre>
  <p>And want the output like this:</p>
  <pre><code>{
      &quot;apple&quot;: {
          &quot;1 apple&quot;: {
              &quot;2 apple&quot;: 0
          }
      },
      &quot;lemon&quot;: {
          &quot;1 lemon&quot;: {
              &quot;2 lemon&quot;: {
                  &quot;3 lemon&quot;: 0
              }
          },
          &quot;1 orange&quot;: 0
      },
  }
  
  </code></pre>
  <p>I have a lot of of lists (chains) in the <code>data</code>, so I need your help!)
  How to do it in python?</p>