Can someone please explain the logic behind the below code from the OOP practice problems - Supermarket Queue
The code below is from the answer and implements the string method. However the concepts of copy() had not been covered in the lessons material.
def str(self):
tmp = self.elements[self.front_index:].copy()
tmp.reverse()
return str(tmp)