I am trying to make a straightforward code where a variable = 0 if Instagram isn't running and = 1 if it is but I can't find a tool that can do this for me. I am relatively new to Python programming so most answers to similar questions that I've seen on this were confusing.
In short, is there a way to detect if an app/process such as Instagram is open on my computer?