How to use __str__ to print the stored data in a dictionary
<p>How do I use the <code>__str__</code> to print the dictionary stored data whenever I give the <code>print</code> command. I am using:</p>

<pre><code>def __str__(self):
    for atom in self.pdb_atoms().keys():
        return '%s'%self.pdb_atoms()[atom]
</code></pre>

<p>If I have a dictionary in python whose index has a string and a integer like <code>{ 'CA' 56: 'ATOM 727 HG2 57 -7.010000 11.418000 -23.532000'....}</code></p>

<p>But this gives me data corresponding to a single key instead of the whole list; this prints only line 727 from a list of 1344 lines. I have no clue, where I am going wrong. <code>pdb_atoms</code> is the name of the dictionary</p>
