s = repr(obj) a = `obj` # Same thing
a = "Hello World\n" print str(a) # Prints "Hello World" (with newline) print repr(a) # Prints "Hello World\012"