# swaping the first and the last element a_list = ["a", "b", "c"] a_list[0], a_list[2] = a_list[2], a_list[0]