Question: PYTHON: Write a function called find punctuation which takes in a string as a parameter and finds all the punctuation in the string. Your function

PYTHON: Write a function called findpunctuation which takes in a string as a parameter and finds all the punctuation in the string. Your function should return a list of integers which are the positions of the punctuation marks in the string. You can limit your search to just the following punctuation marks (.?!,;:-|) in your findpunctuation function.

Example: >>> find_punctuation("Jun 25 2016, 22:01:18") [11, 15, 18] 11 is the comma position, 15 and 18 are the colon positions. 

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!