Question: Update file _ path and delim to read the text from data / tempest . txt and split its content into scenes. ( Note: delim
Update filepath and delim to read the text from datatempesttxt and split its content into scenes. Note: delim should be set to a pattern that matches the scene headers Section Print the scenes identified in the play eg "SCENE "SCENE
With the preset code:
#Your code starts here
filepath
delim
#Your code stops here
tempesttext openfilepath, rread
scenetexts resplitdelim tempesttext
printScenes: scenetexts::
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
