Python For Loop

The for loop in python is used to iterate over a sequence or other iterable objects.iterating over a sequence called traversal.


for val in sequence:
   body of for loop


no = [1,2,3,4,5];
	for val in no:
Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!