Python, comment trier la liste en fonction d'une autre liste ?
📁 Sujets avancés sur Python
BOX_B = [ 7 , 3 , 9 , 5 ] box_a = [Apple, Banana, Cherry, Lemon]L'essentiel est qu'après avoir trié
box_b j'ai besoin que box_a soit trié de la même manière.# après avoir trié box_b et un certain algorithme* box_b = [ 3 , 5 , 7 , 9 ] box_a = [Banana, Lemon, Apple, Cherry] Pre>