Que > Program to demonstrate Iterator in Python
file.py
arr={10,20,30,40,50,60,70}
sum=0
for i in arr:
sum+=i
print(sum)
Output
280
Que > Program to demonstrate Iterator in Python
arr={10,20,30,40,50,60,70}
sum=0
for i in arr:
sum+=i
print(sum)
280