Example 1: python string to list of int
>>> example_string = '0, 0, 0, 11, 0, 0, 0, 0, 0, 19, 0, 9, 0, 0, 0, 0, 0, 0, 11'
>>> list(map(int, example_string.split(',')))
[0, 0, 0, 11, 0, 0, 0, 0, 0, 19, 0, 9, 0, 0, 0, 0, 0, 0, 11]
>>> [int(s) for s in example_string.split(',')]
[0, 0, 0, 11, 0, 0, 0, 0, 0, 19, 0, 9, 0, 0, 0, 0, 0, 0, 11]
Example 2: convert list of strings to int python
test_list = ['1', '4', '3', '6', '7']
print ("Original list is : " + str(test_list))
for i in range(0, len(test_list)):
test_list[i] = int(test_list[i])
print ("Modified list is : " + str(test_list))