summaryrefslogtreecommitdiff
path: root/progs/a24.py
blob: 5f8bae7ea73c5ae4f5e2f1814cd4b01f94e71e6f (plain)
1
2
3
4
5
6
def swap_List(newList): 
    size = len(newList) 
    temp = newList[0] 
    newList[0] = newList[size - 1] 
    newList[size - 1] = temp   
    return newList