Name: __________________________ NetID: _____________ Name: __________________________ NetID: _____________ Name: __________________________ NetID: _____________
The function sizes has a parameter named words that is a list of strings. This function returns a list of the sizes of each string. For example, sizes(['This', 'is', 'a', 'test']) should return the list [4, 2, 1, 4]
Does the following code work or not? If not, what is wrong with it?
The function buildword has a parameter words that is a list of strings. This function returns a string that is made up of the first character from each word in the list. For example, buildword(['This', 'is', 'a', 'test']) returns 'Tiat'
Does the following code work or not? If not, what is wrong with it?
The function middle has a parameter names that is a list of strings, which each string in the format "firstname:middlename:lastname". This function returns a list of strings of the middlenames.
Does the following code work or not? If not, what is wrong with it?
The function removeOs has one string parameter named names. This function returns a string equal to names but with all the lowercase o's removed.
Does the following code work or not? If not, what is wrong with it?