'Look for item inside list, when found, inside same item before it. (python)

inside a list I'm looking for the item '-', when we find it, I want to insert '-' before it. Should be pretty easy but I'm struggling :S



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source