What I don't like about the answers right now is that they all stick together in one expression. You want to reduce redundancy in your code without doing too much at once.
If all the elements in the string are ints, then convert them all together, so you do not need to write int(...) every time:
starf = [int(i) for i in starf]
If only some elements are ints - perhaps some of them are strings or float - then you can convert only those:
for i in 0,1,2,3,4: starf[i] = int(starf[i]))
Assigning in blocks is helpful; if you have a lot of items - you said that you have 30 - you can separate it:
done, rema, succ = starf[0:2] fails, size = starf[3:4]
source share