Hi all,
i am beginner to this python language and slowing learning the language by
referring docs.I am trying to understand the for loop i.e., usage of for
loop in python,unlike c where i can give condition in python it is simple
iterating over sequence.

I am trying tounderstand the below lines of code but of no avail.

a = ["cat", "window","defenestrate"]
for x in a:
     print x, len(x)
i cant understand what x is doing here and what is the purpose of it
can anyone help me out here?

-- 
Raghavendra  Vanam
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to