stringIds = "948274432, 948364892, 943224012"
I have such a string. How can I transfer the ids here into a list by converting them to int?
intList = []
for x in stringIds:
intList.append(int(x))
I tried a code like this but the error I got ValueError: invalid literal for int() with base 10: ','
Here is the sample list I want to get
intList = [948274432, 948364892, 943224012]