In a photo booth strip, the first and last photos need to trade places.
Task: write swap_ends(photos) that swaps the first and last values of the list, then returns it.
return that same list. Everything in the middle stays where it is.photos always has at least one value. With just one, swapping it with itself changes nothing.Once your code passes every test, a reference solution shows up here so you can compare it with yours.