I need to create the function that changes a string of comma separated integers with this structure:
signal = ('1,7,6,9,12,21,26,27,25')
If I use this code, two-digit numbers is not correct, because it results in the separation into two numbers
result = [int(i) for i in signal]
Current output: [1, 7, 6, 9, 1, 2, 2, 1, 2, 6, 2, 7, 2, 5]
Expected output: [1,7,6,9,12,21,26,27,25]