Browse Source

docs(punishment): apply linter to subject

DEV-4397-piscine-ai-missing-file-for-ex-7-of-nlp
Michele Sessa 1 year ago committed by Michele
parent
commit
41dccb6469
  1. 6
      subjects/devops/punishment/README.md

6
subjects/devops/punishment/README.md

@ -6,11 +6,13 @@ Often in schools we are asked to copy hundreds of sentences in order to better r
Hopefully we now have Python that can do the job for us.
In order to do so create a file `punishment.py` which will contain a function `do_punishment` having 3 arguments:
- `first_part`: which will be a string.
- `second_part`: which will be also a string.
- `nb_lines`: which will be a number.
Here is the prototype of the function:
```python
def do_punishment(first_part, second_part, nb_lines):
```
@ -51,5 +53,5 @@ The first half and the second.
### References
* [strip](https://www.w3schools.com/python/ref_string_strip.asp)
* [string multiplication](https://www.geeksforgeeks.org/create-multiple-copies-of-a-string-in-python-by-using-multiplication-operator/)
- [strip](https://www.w3schools.com/python/ref_string_strip.asp)
- [string multiplication](https://www.geeksforgeeks.org/create-multiple-copies-of-a-string-in-python-by-using-multiplication-operator/)

Loading…
Cancel
Save