Question: I need to write a function ` alicewords / 2 ` that reads in ` alice . txt ` and splits it into words using
I need to write a function alicewords that reads in alicetxt and splits it into words using splitstring I must split on spaces and remove leading or trailing spaces.
This appears to work, but I don't understand why it works. Can you help explain this concept to me Thank you so much
alicewordsWordCount :
openalicetxt read, Str
readstringStr Text
splitstringText Words
lengthWords WordCount
closeStr
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
