python Programming Glossary: otherinputs
Python: Determine if an unsorted list is contained in a 'list of lists', regardless of the order to the elements http://stackoverflow.com/questions/20055321/python-determine-if-an-unsorted-list-is-contained-in-a-list-of-lists-regardl ... which I call many times def doSomething myListOfLists otherInputs list1 ... # do something here with `otherInputs' ... # which.. otherInputs list1 ... # do something here with `otherInputs' ... # which gives `list1' some values # now only append `list1'.. You can use sets here def doSomething myListOfLists otherInputs s set otherInputs #create set from otherInputs for item in myListOfLists..
|