123456
## let's say fileindices is a list of string: ['1','2','3',...]## and now we want to change it to [1,2,3,...]## Using the map function:fileindices = map(int, fileindices)