Use text from file
<p>I have a problem when I want to extract some labels from file. I'm  talking about 2000 labels, and I would like to use them from file and give them some size characteristic. </p>

<pre><code>with open("filename") as f:
    content = f.readlines()

nsize= { "Mary": 1, "John": 1, "Jack": 1, "Ted": 5 }
</code></pre>

<p>this is example for 4 labels. I need it for all 2000. What is the easiest way to do that?</p>
