Write another function, called mirror , that mirrors the phrase provided. The function mirror defines one formal parameter called phrase . The function creates a “mirror image” of the phrase meaining that it contains the forward and reversed phrase.
An example is shown below:
mirrored_phrase = mirror(‘Programming Rocks’)
^^ outputs :
Programming RocksskcoR gnimmargorP