Find out whether a list is a palindrome: solution

Run the following doctest to verify that the solution given works as expected.

>>> def is_palindrome(some_list):
...     copy = some_list[:]
...     copy.reverse()
...     return some_list == copy
>>>
>>> a_list = ['s', 'p', 'a', 'm']
>>> is_palindrome(a_list)
False
>>> another_list = ['k', 'a', 'y', 'a', 'k']
>>> is_palindrome(another_list)
True
List of all problems