I'm a little new to Python and I was wondering how you would present more than one output side by side if it was part of different functions. So for a simple example:
def function1():
print("This is")
def function2():
print("a line")
def main():
function1()
function2()
main()
If I do this it would print:
This is
a line
But how would I adjust it to print out like this:
This is a line
EDIT: I noticed .end function would help here but what if I had a long list of item? It doesn't appear to work in that scenario. So for example what if my two outputs were:
252
245
246
234
and
Bob
Dylan
Nick
Ryan
and I wanted to join the two so it would be like:
252 Bob
245 Dylan
246 Nick
234 Ryan