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
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))
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))