I have the following list in python
a = ['[', '1', ',', ' ', '0', ',', ' ', '0', ',', ' ', '0', ',', ' ', '0', ',', ' ', '1', ',', ' ', '0', ',', ' ', '1', ',', ' ', '1', ',', ' ', '0', ']'].
I want to extract integers form this, so that I can get a new list
[1,0,0,0,0,1,0,1,1,0]. I am using python 3.x and I have tried the solution given in the link How to extract numbers from a list of strings? but unfortunately I am getting an empty list []. Can somebody help me?