In python how would i turn the empty value of the following lists into '0' and sum the numbers as integers in each list.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

In python how would i turn the empty value of the following lists into '0' and sum the numbers as integers in each list.

Post by answerhappygod »

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', '']
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply