human
Write me a the Python code you requested given the following:
Write a python function to interchange the first and last element in a given list. Here is a solution in Python:
assistant
#Here is the Python code you requested.
 def swap_List(newList): 
    size = len(newList) 
    temp = newList[0] 
    newList[0] = newList[size - 1] 
    newList[size - 1] = temp   
    return newList