Write code to automatically extract the numbers from the list L below and output the sum of them. Numbers can be in a string or not. Your code must generalize and not only work on this list, but any...


Write code to automatically extract the numbers from the list L below and output the sum of them. Numbers can be in a string or not. Your code must generalize and not only work on this list, but any list containing numbers and non-numbers.  Here,  L = [1.1, '2.2', 'hi', 3.3, 'beluga', 4.4, 'hmmm', 'interesting', '8.8', 8.88, [12.1,'12.2',14.3,'15.4']]



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here