Question: Use the Magic command % run - i word _ count . py to run the contents of your script. Testing the process _ word

Use the Magic command %run -i word_count . py to run the contents of your script.
Testing the process_word() Function
Create a markdown cell with a level 2 header that reads "Testing the process_word() Function". Add unformatted text
explaining that you will testing the function using a few test strings.
Run the following lines of code:
print(process_word('Test!'))
print(process_word('WHAT?!?!?'))
print(process_word('!_(:;hEl'10?,)123'))
This should print the following strings, each on different lines: test, what, and hello.
 Use the Magic command %run -i word_count . py to run

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!