The reason for this is for a string that prints something different than what it actually is, which I have strangely encountered. So what I want is something that gives an output like:
>>>x = "hi"
>>>print x
hi
>>>y = print x
>>>y
hi
And what I mean is I already have this huge code where it gets info from html but if I do:
print(Density_[i])
I get the string that I want to have, but if I just do:
>>> Density_[i]
I get a totally different thing that still contains elements of some \n
line breaks and some \x
s.
Basically what I want to do is access the last output and store it in a variable.