Question: a)v) a) Based on the given Python code below, are News string Economic activities in the states will be permitted through the period as long

a)v)
a) Based on the given Python code below, are News string "Economic activities in the states will be permitted through the period as long as social distancing rules followed. Those planning to travel between districts will require a work pass or letter of permission from employers, said Ismail. Only two members of each household will be permitted to leave the house at one time to buy necessities, he added." Write down the correct Python scripts to produce the desired output. i) Count how many times the word "will" appeared in the given News_string string. ii) Split the string News_string using period as delimiter. iii) Change all the characters in News_string to a lower case letter. iv) Replace the string will to won't. v) Append the string with the text: "The decision was made by the National Security Council at meeting earlier on Monday to contain the pandemic. The country recorded 563 new cases on Monday
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
