Easy learning with example program codes

Python for loop

Python For Loop:

Python For Loop is a loop statement which can be used in various forms to execute a block of code continuously as long as the condition of the loop is true, and stops only when the condition fails. These are:

For Loop :

For loop is used to execute a group of action only for a specified number of times.


for <variable> in <sequence>:

code to be executed till the condition is true

Nested For Loop :

Nested For loop is For loop inside a For loop and so on which is used to run multiple loop conditions.


for <variable> in <sequence>:

for <variable> in <sequence>:

code to be executed till the condition is true



print "Letters in word ALPHANUMERIC are:"
for x in "ALPHANUMERIC":
   print x


Industrial Training

We offers Placement Oriented Training on Java, Spring, JSF, Hibernate, PHP, AngularJS, Angular 4, PLSQL, Oracle BI Publisher etc. We also provides Online training, please mail us at


We also provides the Development services for Website Development , Java Development, PHP Development, Android App Development etc. You can contact us on

Copyright © 2019 CodesJava Protection Status SiteMap Reference: Java Wiki