On Mon, 2009-01-05 at 18:49 +0530, vanam wrote:
> 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 o
vanam wrote:
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
In C, the for-loop is just a hidden 'while'. You can
On Mon, Jan 5, 2009 at 14:19, vanam wrote:
> I am trying tounderstand the below lines of code but of no avail.
Python can loop over many types of sequences.. This can be a list,
tuple or string and in your example a list.
> a = ["cat", "window","defenestrate"]
> for x in a:
> print x, len(x