You still have the type list, but the value inside is string. So you want to change the value inside to multiple int numbers from my interpretation. Here's how that can be done
List = ['85, 8, 8, 8'] output = [] for number in List[0].split(','): while ' ' in number: number = number.replace(' ', '') output.append(int(number)) print(output)
Output:[85, 8, 8, 8]