uppose you are given a function in module foo named loop_string_reverse to reverse a string using loops that accepts the original string and returns the reversed string. But the numbers in the string are ignored. for eg, If the user input is he2ll8o will resolve to hello after removing the numbers 2 and 8 which will produce olleh as the reverse string output Now define a function loop_string_reverse_all that accepts a list of user entries and applies the method loop_string_reverse`` in modulefoo``` to each of them, and returns a new list of reverse strings. If function accepts the list input ['ab2ji89','6hel', 'ol5f'] then the function call returns the list ['ijba', 'leh ', 'flo'] Please answer in Python thank you
35.3 Lecture 19-Apr-Q3
Suppose you are given a function in module foo named loop_string_reverse to reverse a string using loops that accepts the original string and returns the reversed string. But the numbers in the string are ignored. for eg, If the user input is he2ll8o will resolve to hello after removing the numbers 2 and 8 which will produce olleh as the reverse string output
Now define a function loop_string_reverse_all that accepts a list of user entries and applies the method loop_string_reverse`` in modulefoo``` to each of them, and returns a new list of reverse strings.
If function accepts the list input ['ab2ji89','6hel', 'ol5f'] then the function call returns the list ['ijba', 'leh ', 'flo']
Please answer in Python thank you
![35.4 Lecture 19-Apr-Q4
Suppose you are given a function in module foo named `function loop_string_reverse_all that accepts a list of user entries and
applies the method loop_string_reverse in modulefooto each of them, and returns a new list of reverse strings
that doesn't include numbers. For eg, if function accepts the list input[ab2ji89',6hel', 'ol5f]then the function call
returns the list[ijba', 'leh ', 'flo]*
Now ask the user to accept strings until user enters quit and display a list of reversed strings. If user enters
ab2ji89
6hel
o15f
quit
output is
['ijba', 'leh', 'flo']
You can use the function loop_string_reverse_all in module foo to solve this.
376584.2127280.qx3zay7](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F35a6a7ab-6f7e-4dff-9510-82f9c5d6fb4f%2F5fd0a38e-8b60-4cc9-b8ea-592ee65486a7%2Fll9sr8d_processed.png&w=3840&q=75)

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images

How do I prevent "quit" from being reversed and appended to the new list?








