Sep-25-2017, 12:41 AM
any reason to believe one way is "better" than the other, for any definition of "better"?
... pair = ('foo','bar') # or it could be a longer tuple, always with strings ... foobar = '_'.join(('prefix',)+pair) foobar = 'prefix_'+('_'.join(pair))normally i choose the code that is easier to read or the code that is shorter. i ran into something like this, this evening, where they had the same ease to read and the same length. maybe you have a "better" opinion.