188k views
2 votes
write code that removes the first and last elements from a list stored in a variable named my_list. assume that the list has been initialized and contains at least two elements.

User Lucyjosef
by
4.4k points

1 Answer

2 votes

Answer:

[24, 35, 9, 56 Approach #3: Swap the first and last element is using tuple variable.

User Kanishka
by
4.4k points