Files
python/reference/concepts/string_methods.md
Michael Morehouse 29478dd68c Organize concepts, eliminate duplication
* Stage 1

* Finish restructuring, add checkboxes.

* Minor format fixes

* fixing broken link

* fixing broken link

* fixing README link

* Fix multiples bad links

* Fix links in reference/concepts/keywords/README.md

* Correcting list description
2021-01-29 11:14:36 -05:00

7 lines
674 B
Markdown

# String methods
TODO: ADD MORE
- strings (and other types) have built in instance methods - in this case, `"string".startswith("s")` which are called from the instance of the string itself [phone-number](../exercise-concepts/phone-number.md)
- this exercise uses `str.maketrans()` (a static method of `str` that returns a dictionary to create a _translation table_ as required by the `str.translate()` instance method. This method is unusual in that it takes either a single dictionary or two strings of equal length. The example solution for this exercise uses `str.maketrans()` with a two-string argument. [rna-transcription](../exercise-concepts/rna-transcription.md)