/ Published in: Python
Performance can be seen in link. This code, however, uses generator expression instead of list comprehension.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
''.join( num for num in xrange(100000) )
URL: http://www.skymind.com/~ocrow/python_string/