Question: need help with #10 and #25... In python (Juypter) link of text book: https://www.google.com/books/edition/Natural_Language_Processing_with_Python/KGIbfiiP1i4C?hl=en&gbpv=1&printsec=frontcover (chapter 1) 10. - Define a variable my_sent to be a

need help with #10 and #25... In python (Juypter)

link of text book:

https://www.google.com/books/edition/Natural_Language_Processing_with_Python/KGIbfiiP1i4C?hl=en&gbpv=1&printsec=frontcover

(chapter 1)

need help with #10 and #25... In python (Juypter) link of textbook: https://www.google.com/books/edition/Natural_Language_Processing_with_Python/KGIbfiiP1i4C?hl=en&gbpv=1&printsec=frontcover (chapter 1) 10. - Define a variable my_sent to be

10. - Define a variable my_sent to be a list of words, using the syntax my_sent =[ "My", "sent"] (but with your own words, or a favorite saying). a. Use' '.join(my_sent) to convert this into a string. b. Use split() to split the string back into the list form you had to start with. d. All lowercase letters except for an initial capital (i.e., titlecase) 5. Define sent to be the list of words ['she', 'sells', 'sea', 'shells', 'by', 'the', 'sea', 'shore']. Now write code to perform the following tasks: a. Print all words beginning with sh. b. Print all words longer than four characters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!