Python Snippet PPP Q27

Raw Python Snippet (WIP)

#Take a list and return first and last value


def returnList(l):
    return l[0],l[-1]

a=[1,2,3,4,5,6,7,8,9]
print(returnList(a))