Possible Duplicate:
Creating or assigning variables from a dictionary in Python
Hello
we have dictionary like this:
data = {'raw':'lores ipsum', 'code': 500}
how to convert this dict to strings? result must be like this:
print raw
print code
#output is
# lores ipsum
# 500
EDIT: OK, so what I want is to have raw and code variable available.. one more example
data = {'raw':'lores ipsum', 'code': 500}
var1 = code
var2 = raw
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...
EDIT: deleted, nobody understands what I want