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.
with open("filename") as f:
content = f.readlines()
nsize= { "Mary": 1, "John": 1, "Jack": 1, "Ted": 5 }
this is example for 4 labels. I need it for all 2000. What is the easiest way to do that?