| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4428d87 commit 9072b68
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -448,10 +448,10 @@ with calls to ``append()``. | |||
| 448 | 448 | nums = [str(n) for n in range(20)] | |
| 449 | 449 | print "".join(nums) | |
| 450 | 450 | ||
| 451 | - One final thing to mention about strings is that using join() is not always | ||
| 451 | + One final thing to mention about strings is that using ``join()`` is not always | ||
| 452 | 452 | best. In the instances where you are creating a new string from a pre-determined | |
| 453 | 453 | number of strings, using the addition operator is actually faster, but in cases | |
| 454 | - like above or in cases where you are adding to an existing string, using join() | ||
| 454 | + like above or in cases where you are adding to an existing string, using ``join()`` | ||
| 455 | 455 | should be your preferred method. | |
| 456 | 456 | ||
| 457 | 457 | .. code-block:: python | |
| Back | FazBrowse Home | New Git URL |
0 commit comments