Closed DavidGerva closed 3 years ago
@J08K is taking this on...but couldn't self-assign.
The student is going to use .format()
and f-strings
and we'll put old style %
and Template
strings in the after.md
.
@J08K -- are you still working on this? Would you like some help or collaboration? @mohanrajanr has some time free to help and wanted to know if there is anything he could finish up or help you with? If so, just ping him or myself in Slack. 😄
Note: https://github.com/exercism/v3/pull/2204 is the Draft PR for this issue.
@J08K -- are you still working on this? Would you like some help or collaboration? @mohanrajanr has some time free to help and wanted to know if there is anything he could finish up or help you with? If so, just ping him or myself in Slack. 😄
I want to get back to this ASAP, I had a test week last week (A.K.A. A lot of very difficult tests in a week), but I am sure I can work on it again. When I do I'll see if @mohanrajanr can help! Thanks
I have created a PR with a concept exercise for this, hopefully, we can merge it before the first beta release of the v3.
This issue describes how to implement the
string formatting
concept exercise for the python track, explaining all the various methods.Getting started
Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:
Please also watch the following video:
Goal
This concept exercise should convey a basic understanding of the various
string formatting
methods in python.Learning objectives
%
operatorstr.format()
Out of scope
str.maketrans
andstr.translate
gettext
Concepts
%
operatorstr.format()
Prerequisites
basics
strings
Resources to refer to
Hints
After
Deeper discussions of pros and cons of each method. Security implications of string interpolation and user input. Unicode, internationalization and localization considerations and organization.
Representer
No changes required.
Analyzer
No changes required.
Implementing
Tests should be written using unittest.TestCase and the test file named bool_basic_test.py.
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.
Edits