Skip to content

Commit

Permalink
Data Structure Revisions
Browse files Browse the repository at this point in the history
Added in mention of format method in More About Strings.
Typo.
  • Loading branch information
d-s-1 committed Aug 31, 2017
1 parent 3c1833f commit 58fec04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ Remember that if you want to make a copy of a list or such kinds of sequences or
## More About Strings {#more-strings}

We have already discussed strings in detail earlier. What more can there be to know? Well, did you know that strings are also objects and have methods which do everything from checking part of a string to stripping spaces!
We have already discussed strings in detail earlier. What more can there be to know? Well, did you know that strings are also objects and have methods which do everything from checking part of a string to stripping spaces? In fact, you've already been using a string method... the `format` method!

The strings that you use in program are all objects of the class `str`. Some useful methods of this class are demonstrated in the next example. For a complete list of such methods, see `help(str)`.
The strings that you use in programs are all objects of the class `str`. Some useful methods of this class are demonstrated in the next example. For a complete list of such methods, see `help(str)`.

Example (save as `ds_str_methods.py`):

Expand Down

0 comments on commit 58fec04

Please sign in to comment.