Define a function is_palindrome
which returns
True
if a reversed list is equal to
the original, and False
otherwise.
>>> a_list = ['s', 'p', 'a', 'm'] >>> is_palindrome(a_list) False >>> another_list = ['k', 'a', 'y', 'a', 'k'] >>> is_palindrome(another_list) TrueSolution