Most efficient way to concatenate strings in Python!

/*--- holy mAcar00ns!! --- */

The most efficient way is to use a list comprehension like so:

def method6():
return ''.join([`num` for num in xrange(loop_count)])

See the whole rundown on the 6 possible ways to do it and their relative efficiency.

I sort of like method 4...


all your bases ar--

ping moi pleeez

About this entry

pacman is coming

nuck nuck

e belong to us!