Avatar ·

Python lists synchronous sorting

📁 python

There are two lists a and b

you need to syntil them on 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' ]