mirror of
https://codeberg.org/andyscott/exercism.git
synced 2024-12-22 14:43:10 -05:00
29 lines
1.1 KiB
Markdown
29 lines
1.1 KiB
Markdown
|
# Hints
|
||
|
|
||
|
## General
|
||
|
|
||
|
- [Python Documentation: String Methods][string-method-docs]
|
||
|
- [Python Documentation Tutorial: Text][tutorial-strings]
|
||
|
|
||
|
## 1. Capitalize the title of the paper
|
||
|
|
||
|
- You can use [string methods][title-method-docs] to capitalize the title properly.
|
||
|
|
||
|
## 2. Check if each sentence ends with a period
|
||
|
|
||
|
- You can use [string methods][endswith-method-docs] to check the ending of a string.
|
||
|
|
||
|
## 3. Clean up spacing
|
||
|
|
||
|
- You can use [string methods][strip-method-docs] to remove whitespace.
|
||
|
|
||
|
## 4. Replace words with a synonym
|
||
|
|
||
|
- You can use [string methods][replace-method-docs] to replace words.
|
||
|
|
||
|
[endswith-method-docs]: https://docs.python.org/3/library/stdtypes.html#str.endswith
|
||
|
[replace-method-docs]: https://docs.python.org/3/library/stdtypes.html#str.replace
|
||
|
[string-method-docs]: https://docs.python.org/3/library/stdtypes.html#string-methods
|
||
|
[strip-method-docs]: https://docs.python.org/3/library/stdtypes.html#str.strip
|
||
|
[title-method-docs]: https://docs.python.org/3/library/stdtypes.html#str.title
|
||
|
[tutorial-strings]: https://docs.python.org/3/tutorial/introduction.html#text
|