title: How to intialize multiple dictionaries in a single line, and intialize them with a list of keys as an input parameter in Python?
body: <p>I have 8 dictionaries intialized in the same way</p>
  <pre><code>dicc_1={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0}
  dicc_2={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0}    
  dicc_3={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0}
  dicc_4={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0}
  dicc_5={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0}
  dicc_6={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0}
  dicc_7={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0}
  dicc_8={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0}
  </code></pre>
  <p>Question1:
  Is there a better way to do this? Because if I need more dictionaries it will make the script very large
  It would be nice if there is a solution like this:</p>
  <pre><code>dicc_1,dicc_2,dicc_3,dicc_4,dicc_5,dicc_6,dicc_7,dicc_8={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0, &quot;Height&quot;:0, &quot;All&quot;:0} * 8
  </code></pre>
  <p>But it doesn't work</p>
  <p>Question 2:
  Is there a way to change the keys if I pass a list of keys? Like this function that doesn't work too</p>
  <pre><code>def myFunc(ListOfKeys):
     dicc_1,dicc_2,dicc_3,dicc_4,dicc_5,dicc_6,dicc_7,dicc_8={ListOfKeys[0]:0,ListOfKeys[1]:0,ListOfKeys[2]:0, ListOfKeys[3]:0, ListOfKeys[4]:0} * 8
     &quot;Do stuff with dictionaries&quot;
     &quot;Return all dictionaries&quot;
  </code></pre>
  <p>So this evaluation:</p>
  <pre><code>myFunc(ListOfKeys=[&quot;Area&quot;,&quot;Age&quot;,&quot;Weight&quot;,&quot;Height&quot;,&quot;All&quot;])
  </code></pre>
  <p>Would intialize dictionaries in this way:</p>
  <pre><code>dicc_1={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0,&quot;Height&quot;:0,&quot;All&quot;:0}
  dicc_2={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0,&quot;Height&quot;:0,&quot;All&quot;:0}
  dicc_3={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0,&quot;Height&quot;:0,&quot;All&quot;:0}
  dicc_4={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0,&quot;Height&quot;:0,&quot;All&quot;:0}
  dicc_5={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0,&quot;Height&quot;:0,&quot;All&quot;:0}
  dicc_6={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0,&quot;Height&quot;:0,&quot;All&quot;:0}
  dicc_7={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0,&quot;Height&quot;:0,&quot;All&quot;:0}
  dicc_8={&quot;Area&quot;:0,&quot;Age&quot;:0,&quot;Weight&quot;:0,&quot;Height&quot;:0,&quot;All&quot;:0}
  </code></pre>
  <p>And this evaluation:</p>
  <pre><code>myFunc(ListOfKeys=[&quot;Car&quot;,&quot;Train&quot;,&quot;Ship&quot;])
  </code></pre>
  <p>Would intialize dictionaries in this way:</p>
  <pre><code>dicc_1={&quot;Car&quot;:0,&quot;Train&quot;:0,&quot;Ship&quot;:0}
  dicc_2={&quot;Car&quot;:0,&quot;Train&quot;:0,&quot;Ship&quot;:0}    
  dicc_3={&quot;Car&quot;:0,&quot;Train&quot;:0,&quot;Ship&quot;:0}
  dicc_4={&quot;Car&quot;:0,&quot;Train&quot;:0,&quot;Ship&quot;:0}
  dicc_5={&quot;Car&quot;:0,&quot;Train&quot;:0,&quot;Ship&quot;:0}
  dicc_6={&quot;Car&quot;:0,&quot;Train&quot;:0,&quot;Ship&quot;:0}
  dicc_7={&quot;Car&quot;:0,&quot;Train&quot;:0,&quot;Ship&quot;:0}
  dicc_8={&quot;Car&quot;:0,&quot;Train&quot;:0,&quot;Ship&quot;:0}
  </code></pre>