You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/concept/little-sisters-vocab/.docs/hints.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
## General
4
4
5
-
- The [Python Docs Tutorial for strings][python-str-doc] has an overview of the Python `str` type.
6
-
- String methods [<str>.join()][str-join] and [<str>.split()][str-split] ar very helpful when processing strings.
7
-
- The [Python Docs on Sequence Types][common sequence operations] has a rundown of operations common to all sequences, including `strings`, `lists`, `tuples`, and `ranges`.
5
+
- The Python Docs [Tutorial for strings][python-str-doc] has an overview of the Python `str` type.
6
+
- String methods [`str.join()`][str-join] and [`str.split()`][str-split] ar very helpful when processing strings.
7
+
- The Python Docs on [Sequence Types][common sequence operations] has a rundown of operations common to all sequences, including `strings`, `lists`, `tuples`, and `ranges`.
8
8
9
9
There's four activities in the assignment, each with a set of text or words to work with.
10
10
@@ -14,24 +14,24 @@ There's four activities in the assignment, each with a set of text or words to w
14
14
15
15
## 2. Add prefixes to word groups
16
16
17
-
- Believe it or not, `<str>.join()` is all you need.
18
-
- Like `<str>.split()`, `<str>.join()` can take an arbitrary-length string, made up of any unicode code points.
17
+
- Believe it or not, [`str.join()`][str-join] is all you need here.
18
+
- Like [`str.split()`][str-split]`, `str.join()` can take an arbitrary-length string, made up of any unicode code points.
19
19
20
20
## 3. Remove a suffix from a word
21
21
22
-
- Strings can be both indexed and sliced from either the left (starting at 0) or the right (starting at -1).
22
+
- Strings can be indexed or sliced from either the left (starting at 0) or the right (starting at -1).
23
23
- If you want the last code point of an arbitrary-length string, you can use [-1].
24
24
- The last three letters in a string can be "sliced off" using a negative index. e.g. 'beautiful'[:-3] == 'beauti'
25
25
26
26
## 4. Extract and transform a word
27
27
28
-
- Using `<str>.split()` returns a list of strings broken on white space.
28
+
- Using [`str.split()`][str-split] returns a `list` of strings broken on white space.
29
29
-`lists` are sequences, and can be indexed.
30
-
-`<str>.split()` can be direcly indexed. e.g.`'Exercism rocks!'.split()[0] == 'Exercism'`
30
+
-[`str.split()`][str-split] can be directly indexed:`'Exercism rocks!'.split()[0] == 'Exercism'`
31
31
- Be careful of punctuation! Periods can be removed via slice: `'dark.'[:-1] == 'dark'`
Copy file name to clipboardExpand all lines: exercises/concept/little-sisters-vocab/.docs/instructions.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Instructions
2
2
3
-
You are helping your younger sister with her English vocabulary homework, which she's finding very tedious.
3
+
You are helping your younger sister with her English vocabulary homework, which she is finding very tedious.
4
4
Her class is learning to create new words by adding _prefixes_ and _suffixes_.
5
5
Given a set of words, the teacher is looking for correctly transformed words with correct spelling by adding the prefix to the beginning or the suffix to the ending.
6
6
@@ -12,7 +12,7 @@ There's four activities in the assignment, each with a set of text or words to w
12
12
One of the most common prefixes in English is `un`, meaning "not".
13
13
In this activity, your sister needs to make negative, or "not" words by adding `un` to them.
14
14
15
-
Implement the `add_prefix_un()` function that takes `word` as a parameter and returns a new `un` prefixed word:
15
+
Implement the `add_prefix_un(<word>)` function that takes `word` as a parameter and returns a new `un` prefixed word:
16
16
17
17
18
18
```python
@@ -63,7 +63,7 @@ Implement the `make_word_groups(<vocab_words>)` function that takes a `vocab_wor
63
63
But of course there are pesky spelling rules: If the root word originally ended in a consonant followed by a 'y', then the 'y' was changed to 'i'.
64
64
Removing 'ness' needs to restore the 'y' in those root words. e.g. `happiness` --> `happi` --> `happy`.
65
65
66
-
Implement the `remove_suffix_ness(<word>)` function that takes in a word `str`, and returns the root word without the `ness` suffix.
66
+
Implement the `remove_suffix_ness(<word>)` function that takes in a `word`, and returns the root word without the `ness` suffix.
67
67
68
68
69
69
```python
@@ -76,7 +76,7 @@ Implement the `remove_suffix_ness(<word>)` function that takes in a word `str`,
76
76
77
77
## 4. Extract and transform a word
78
78
79
-
Suffixes are often used to change the part of speech a word has.
79
+
Suffixes are often used to change the part of speech a word is assigned to.
80
80
A common practice in English is "verbing" or "verbifying" -- where an adjective _becomes_ a verb by adding an `en` suffix.
81
81
82
82
In this task, your sister is going to practice "verbing" words by extracting an adjective from a sentence and turning it into a verb.
0 commit comments