I have this list
['456-789-154','741-562-785','457-154-129']
I want to convert it to int list like this:
[456,789,154,741,562,785,457,154,129]
Please help!!
I tried:
list = [item.replace("-",",") for item in list)
list = [item.replace("'","") for item in list)
But I don't know why the second line is not working.