Python lists synchronous sorting
📁 Advanced Python Topics
There are two lists a and b
you need to sort them by the list a , i.e. the first element of the list a corresponds to the first element of the list b , etc.
a = [ 3 , 1 , 2 ] b = [ '' a 'a' , 'b' b 'b' b 'b' b 'b' b 'b' b 'b' b 'b' b ' class = ""> 'c' ] ... a1 = [ 1 , 2 , 3 ] b1 = [ 'b' , 'c' , 'a' ]