mardi 24 mars 2015

Removing an element from a list and a corresponding value


myList = ['a', 'b', 'c']
myOtherList = [1, 2, 3]


If I chose one element from myList, how do I remove the corresponding value from myOtherList. I am choosing elements from myList at random and need to make sure the corresponding value from myOtherList is removed.





Aucun commentaire:

Enregistrer un commentaire