How this code work? How this tuple swap the values in this code?
>>> list1=[1,2,3,4]
>>> (list1[0],list1[1])=(list1[1],list1[0])
>>>
How this code work? How this tuple swap the values in this code?
>>> list1=[1,2,3,4]
>>> (list1[0],list1[1])=(list1[1],list1[0])
>>>