Source code for kyu_8.my_head_is_at_the_wrong_end.fix_the_meerkat
# Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
[docs]def fix_the_meerkat(arr: list) -> list:
"""
You will be given an array which will have
three values (tail, body, head).
It is your job to re-arrange the array so
that the animal is the right way round
(head, body, tail).
:param arr:
:return:
"""
return arr[::-1]