In ruby you can inspect any object with the inspect method:
For example:
print [1,"string",:symbol,[?l, ?i, ?s, ?t]].inspect
will print
[1, "string", :symbol, ["l", "i", "s", "t"]]
Is there any similar facility in python which allows me to print the content of some arbitrary variable?