I have a string that goes like this:
data = "2, 32, 56, 87, 45, 98, 1"
I am trying to strip the commas and spaces out, and then parse the string into integers. I have tried to remove the commas and spaces using if spaces, but the problem I keep getting is that I get this:
[2, 3, 2, 5, 6, 8, 7, 4, 5, 9, 8, 1]
is there anyway to get a list like this:
[2, 32, 56, 87, 45, 98, 1]