Assignment 11 — stringing lists
Due Monday, February 11 @ 2 PM
Advice
- If you have not yet check out the string module, we highly recommend you do so.
Program aeschylus.py
- Prompt and gets user-supplied text.
- Converts user-supplied text into a list of words
- Prints the list of user-supplied words.
- Through accumulation, produces a new list whose elements are those of the user-supplied words with all occurrences of
's'
removed.
- Prints the s-less list.
- Reprints the list of user-supplied words.
- Does not print anything other than what is requested.
Two sample program runs
Enter text: susie sells seashells by the seashore
['susie', 'sells', 'seashells', 'by', 'the', 'seashore']
['uie', 'ell', 'eahell', 'by', 'the', 'eahore']
['susie', 'sells', 'seashells', 'by', 'the', 'seashore']
Enter text: sleepless in seatle
['sleepless', 'in', 'seatle']
['leeple', 'in', 'eatle']
['sleepless', 'in', 'seatle']