Question: please used in basic python language! thank you Question 2 Write a program to conduct a special task. There is a paragraph, which has been

please used in basic python language! thank you Question 2 Write aplease used in basic python language! thank you

Question 2 Write a program to conduct a special task. There is a paragraph, which has been consolidated word-by-word into a list called word_ls. Your program should join any two adjacent words in order and return something in the expected output below (based on the sample paragraph). Noted that your program should be applicable when the content of the paragraph list changes (i.e., when word_ls changes baesd on the content of a new paragraph, your program should still work). Sample paragraph: "My name is Lance John. I am working at Savings Limited in Germany. Savings Limited accepts mutual funds as investment option. Savings Limited also accepts other investment option." The word list form: word_ls = ['My', 'name', 'is', 'Lance', 'John', 'I', 'am', 'working', 'at', 'Savings', 'Limited', 'in', 'Ger many', 'Savings', 'Limited', 'accepts', 'mutual', 'funds', 'as', 'investment', 'option', 'Savings', 'Limited '; 'also', 'accepts', 'other', 'investment', 'option'] Expected output: ['My name', 'name is', 'is Lance', 'Lance John', 'John I', 'I am', 'am working', 'working at', 'at Savings', 'Savings Limited', 'Limited in', 'in Germany', 'Germany Savings', 'Savings Limited', 'Limited accepts', 'accepts mutual', 'mutual funds', 'funds as', 'as investment', 'investment option', 'option Savings', 'Savings Limited', 'Limited also', 'also accepts', 'accepts other', 'other investment', 'investment option'] *** 1 word_ls = ['My', 'name', 'is', 'Lance', 'John', 'I', 'am', 'working', 'at', 'Savings', 'Limited 2 'in', 'Germany', 'Savings', 'Limited', 'accepts', 'mutual', 'funds', 'as" investment, 3 'option', 'Savings', 'Limited', 'also', 'accepts', 'other', 'investment' 'option'] 4 5 # Start your code below 6

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!