12. List Ends
12. List Ends

Write a program that takes a list of numbers and makes a new list of
only the first and last elements of the given list. For practice, write
this code inside a function. (Functions and list comprehension will be
added soon.)

Reference:
http://www.practicepython.org/exercise/2014/04/25/12-list-ends.html

marcmaceira/Python-Exercises