[Little Sister's Vocab/Essay]: Update About.md to Include removeprefix and removesuffix
See original GitHub issuePython 3.9
introduces two new string methods that make removing prefixes and suffixes easier.
Little Sisters Vocab
has the student remove prefixes and suffixes, but uses Python 3.8
methods. Its follow-on exercise Little Sisters Essay
has the student work with startswith()
and endswith()
.
We should note in the string-methods
about.md
(and possibly in the about.md of strings
) that is displayed after the student finishes Little Sisters Essay
that Python 3.9
introduces some methods of convenience around removing prefixes and suffixes:
We should also include code examples of common usage.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Python: removeprefix() and removesuffix() - DEV Community
rstrip() that can be used to trim prefix and suffix but the parameter accepts a set of characters not the substring. These methods...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kana800 - Certainly! 🎉
Below are some additional links to exercism docs. Let I or @J08K know if you have any questions or issues!
Hi @BethanyG / @J08K,
first of all really sorry about the late reply. I took a deeper dive into the issue and before starting to work on the pull request, I wanted to ask some questions.
In
little-sister-vocab
concept.removeprefix
andremovesuffix
in introduction.md, hints.md or just in hints.md ?.little-sister-vocab
concept. Do I need to include about theremovesuffix()
method?.meta/exemplar.py
file as well ?In concepts/strings-methods/about.md, I can do a simple introduction of the new concepts of
removeprefix()
removesuffix()
I dont see the point of mentioning above methods in about.md in strings, If you want to let me know!