solution

Using Jupyter Notebook and nltk.book to solve the problem below:

Define a variable silly to contain the string: ‘newly formed bland ideas are inexpressible in an infuriating way’. Now write code to perform the following tasks:
a. Split silly into a list of strings, one per word, using Python’s split() operation, and save this to a variable called bland.
b. Extract the second letter of each word in silly and join them into a string, to get ‘eoldrnnnna’.
c. Combine the words in bland back into a single string, using join(). Make sure the words in the resulting string are separated with whitespace.
d. Print the words of silly in alphabetical order, one per line.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!