Question: 1) It extracts all strings contained in message that match the following criteria: must start with '+' must contain one or more decimal digits must

 1) It extracts all strings contained in message that match the

1) It extracts all strings contained in message that match the following criteria:

must start with '+'

must contain one or more decimal digits

must end with either 'C' or 'F'

and returns the result as a list of strings.

2) It extracts all strings contained in message that match the following criteria:

may (but need not) start with '+'

must contain one or more decimal digits

must end with either 'C' or 'F'

and returns the result as a list of strings.

3) It extracts all strings contained in message that match the following criteria:

may (but need not) start with '+' or ''

must contain one or more decimal digits

must end with 'CF'

and returns the result as a list of strings.

4) It extracts all strings contained in message that match the following criteria:

may (but need not) start with '+' or ''

must contain one or more decimal digits

must end with 'CF'

and returns the result as a string.

5) It extracts all strings contained in message that match the following criteria:

may (but need not) start with '+' or ''

may contain zero or more decimal digits

must end with either 'C' or 'F'

and returns the result as a list of strings.

6) It extracts all strings contained in message that match the following criteria:

may (but need not) start with '+' or ''

must contain one or more decimal digits

must end with either 'C' or 'F'

and returns the result as a list of strings.

QUESTION 4 Consider the following Python function call using the findall function from the re module: findall+1 [0-91+CF]', message) Which of the following best describes the purpose of this function call

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!