Add list items Question Write a program to add the items of a list. solved 0 Python YashikaKhurana 55 years 2 Answers 752 views Master 0
Answers ( 2 )
Here’s the code:
sum=0
for i in range(len(my_list)):
Here’s the code:
sum=0
for i in range(len(my_list)):
sum=sum+my_list[i]
print(sum)