Question: Write a function named mirror that accepts a list of strings as a parameter and appends the list's contents to itself in reverse order. For
Write a function named mirror that accepts a list of strings as a parameter and appends the list's contents to itself in reverse order. For example, if a list named letters stores ["a", "b", "c"], the call of mirror(letters) should change it to store ["a", "b", "c", "c", "b", "a"].
Constraints: You may declare a single list as auxiliary storage.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
