Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started