Add all the numbers in array

Given list ,it contains differnt objects [2, 0.6,"Hi", 1024,'a',[4,6,"hello",[6,8,] ],1 ] .we need to find the sum of all the number in the list ,output is 1051.6 (2+0.6+1024+4+6+6+8+1).

Comments (3)