Page 1 of 1

8)Find the output of the following program. list = [12, 67,98, 34] # using loop + stro res 0 for ele in list: sum=3 for

Posted: Sat May 14, 2022 2:28 pm
by answerhappygod
8 Find The Output Of The Following Program List 12 67 98 34 Using Loop Stro Res 0 For Ele In List Sum 3 For 1
8 Find The Output Of The Following Program List 12 67 98 34 Using Loop Stro Res 0 For Ele In List Sum 3 For 1 (97.09 KiB) Viewed 39 times
java
8)Find the output of the following program. list = [12, 67,98, 34] # using loop + stro res 0 for ele in list: sum=3 for digit in str(ele): sum += int(digit) res.append(sum) #printing result print (str(res))