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.

Syntax

							
for val in sequence:
   body of for loop
							
							

Example

							
no = [1,2,3,4,5];
	for val in no:
	print(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!