Jan-23-2023, 12:32 AM
Greetings,
I have a python question.. I have a list with the following four elements.
What I want to do is add the vales in element 1 (17,21,29,35,36) to get the sum (138)
The area I am having the problem is how add the numbers in that element?
The numbers are all part of element 1, how would I separate them in to integers so I can add them to get the sum?
Here is an example of a list.
['01/21/2023', '17,21,29,35,36', '1,E','37.43']
Any help or guidance would be greatly appreciated.
Regards,
Monty
I have a python question.. I have a list with the following four elements.
What I want to do is add the vales in element 1 (17,21,29,35,36) to get the sum (138)
The area I am having the problem is how add the numbers in that element?
The numbers are all part of element 1, how would I separate them in to integers so I can add them to get the sum?
Here is an example of a list.
['01/21/2023', '17,21,29,35,36', '1,E','37.43']
Any help or guidance would be greatly appreciated.
Regards,
Monty