In python how would i turn the empty value of the following
lists into '0' and sum the numbers as integers in each
list. ['0', '0', '0', '0', '206', ''] ['0', '0', '0', '0',
'1,799', ''] ['0', '0', '0', '0', '3,787', ''] ['198', '0', '0',
'0', '3,875', ''] ['2,098', '47', '0', '0', '1,588', ''] ['645',
'0', '0', '0', '127', ''] ['918', '54', '0', '0', ''] ['1,954',
'42', '0', '0', '2,548', '']
In python how would i turn the empty value of the following lists into '0' and sum the numbers as integers in each list.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am