Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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)
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 charactersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started