Question: Code Challenge: Functions ( 1 ) Define a function process _ string ( s ) with the following characteristics: It accepts a string s as
Code Challenge: Functions
Define a function processstrings with the following characteristics:
It accepts a string s as a parameter
I returns a list with the following characteristics:
The string is split into a list of words we define words as sequences of alphanumeric characters separated by white spaces
All of the words in the list are in lower case
When testing functions, you may add diagnostic code to your Python file and examine the output using the Run button. For example, you may wish to add a line like printprocessstringThis is my test String" which should return a list thisismy 'test', 'string'
However, the Mark button will test your function with random sentences with meaningless "words" This ensures the function works as desired.
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
