Let's say I have the following function:
def string_function(word):
print(word)
How do I make it so that if I call a separate print function, I can concatenate the string from that function to the new print?
E.g. the following will raise a TypeError, but it's what I'm trying to do. :
print("foo") + string_function("bar")
I know that I can just change the print into a return, but I'm asking if it's possible with a print.