exercism / v3

The work-in-progress project for developing v3 tracks
https://v3.exercism.io
Other
170 stars 162 forks source link

[Python] Implement new Concept Exercise: string formatting #1647

Closed DavidGerva closed 3 years ago

DavidGerva commented 4 years ago

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

Out of scope

Concepts

Prerequisites

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

BethanyG commented 4 years ago

@J08K is taking this on...but couldn't self-assign.

J08K commented 4 years ago

The student is going to use .format() and f-strings and we'll put old style % and Template strings in the after.md.

BethanyG commented 4 years ago

@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. 😄

BethanyG commented 4 years ago

Note: https://github.com/exercism/v3/pull/2204 is the Draft PR for this issue.

J08K commented 4 years ago

@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

valentin-p commented 3 years ago

I have created a PR with a concept exercise for this, hopefully, we can merge it before the first beta release of the v3.