Question: Write a FUNCTION named FindStrings, that will take a list ( list of strings ) as a parameter. The function should return a list indices
Write a FUNCTION named FindStrings, that will take a list list of strings as a parameter. The function should return a list indices indexes The indices returned represent the strings at the index of the list that contain the special character below. If no strings in the list contain the special character or the function is passed an empty list, then the function should return an empty list.
Special Character: R or ruppercase and lowercase special Characters should be detected NOTE: The resulting list should be sorted from lowest index to highest index.
Examples:
code example
xprogrammingis 'really', 'fun'
printFindStrings x
output if 'code example is executed
Because 'programming' at index of the input list contains the special character.
'really' at index of the input list contains the special character
code example
xpogamming', iseally', 'fun'
printFindStrings x
output if 'code example is executed
code example
xpogamming', iseally', 'fRun'
printFindStrings x
output if 'code example is executed
code example
x
printFindStrings x
output if 'code example is executed
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
