Question: Write a script which receives a list of strings as parameters. Input an index string . Iterate through the list of strings and apply the
Write a script which receives a list of strings as parameters. Input an index string . Iterate through the list of strings and apply the `expr index ` operation on each string using the index string as the index. Output the string and the result of the index operation. When done, run it passing the string
abacab foxtrot duke trespass
and input the index string of abcd. Your output should be abacab 1, duke 1, foxtrot 0, trespass 6.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
