For example I have:
x = True and True
print x
I want to be able to do something like:
x = True and True
print "The answer to ", some_function(x), "is", x
Such that the program reads:
The answer to True and True is True.
Is there a some_function()
that can read the content as a string instead of solving as a boolean?
Sorry in advance for any confusion on the wording of the question.