title: how to: convert dictionary to strings in Python?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4357851/creating-or-assigning-variables-from-a-dictionary-in-python">Creating or assigning variables from a dictionary in Python</a>  </p>
  </blockquote>
  
  
  
  <p>Hello</p>
  
  <p>we have dictionary like this:</p>
  
  <pre><code>data = {'raw':'lores ipsum', 'code': 500}
  </code></pre>
  
  <p>how to convert this dict to strings? result must be like this:</p>
  
  <pre><code>print raw
  print code
  #output is 
  #  lores ipsum
  #  500
  </code></pre>
  
  <p><strong>EDIT:</strong>
  OK, so what I want is to have raw and code variable available.. one more example</p>
  
  <pre><code>data = {'raw':'lores ipsum', 'code': 500}
  var1 = code
  var2 = raw
  </code></pre>
  
  <p>it's becomes difficult to make tons of string operations with variable, which is dict, which is in class method...
  so it's endups with this: self.data['raw'][0] , it's killing me to write this everytime so to make "raw" variable is more comfortable... (imagine join and format operation with using this on every line!!!) anyway this vars will be available only in this method, so there's no side-effects for this solution...</p>
  
  <p><strong>EDIT: deleted, nobody understands what I want</strong></p>