Q:

How to print a returned tuple in another method

If I have two methods:

one is a method that changes a string into a tuple and returns it.
other method prints out the tuple returned.

At the end how would I do this?
Input would be something like "12345 firstName lastName otherInfo".
def information(sentence):
    splitUp = sentence.split(' ')
    return sentence

def printAsString():
    "".join(sentence)
    print(sentence)

A:

Here is one way to do it. But what is your objective? This code is kind of pointless...
def information(sentence):
    '''Splits the sentence on space and returns it as tuple'''
    split_up = tuple(sentence.split(' '))
    return split_up

def print_as_string():
    '''Prints tuple as string'''
    sentence = "welcome to SO dear friend"
    print(" ".join(information(sentence)))

if __name__ == "__main__":
    print_as_string()

