Simple syntax for bringing a list element to the front in python?
To bring (for example) the 6th element to the front, use:
mylist.insert(0, mylist.pop(5))
(python uses the standard 0 based indexing)
I would go with:
mylist.insert(0, mylist.pop(mylist.index(targetvalue)))