Answers for "python how work for loop steps"

4

python for loop

my_list = ['a', 'b', 'c']
for i in my_list:
  print(i)
Posted by: Guest on February-07-2022
0

python loop

#loop
a=[1,2, 3, 4, 5, 6]
sum=0
for val in a :
    sum=sum+val
    print("the sum is", sum)
Posted by: Guest on January-25-2022

Code answers related to "python how work for loop steps"

Python Answers by Framework

Browse Popular Code Answers by Language