Most efficient way to concatenate strings in Python!
/*--- holy mAcar00ns!! --- */
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...
Labels: python
all your bases ar--
ping moi pleeez
About this entry
You’re reading “
- Published:
- 11:24 PM
pacman is coming
nuck nuck
e belong to us!
0 Comments (Post a Comment)