Question: Answer both a and b below Given the following lines of Python code: sentence = 'This is a random sentence' word_list = sentence. print(word_list) a.

Answer both a and b below

Given the following lines of Python code:

sentence = 'This is a random sentence'

word_list = sentence.

print(word_list)

a. What string method would you use to convert a string delimited by one space into a list of string values?

b. How would your answer to a change given that

sentence = 'This#is#a#random#sentence'

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!