python for loop

andrew cooke andrew at acooke.org
Tue Mar 31 21:13:05 EDT 2009


Lada Kugis wrote:
> I'm coming from fortran and
   *********** c ***********
> background so I'm certainly biased by
> them. But if you could explain one thing to me:

but this is exactly the same behaviour as the standard way of doing things
in c!

int a[5];
for (i = 0; i < 5; ++i) {
  a[i] = 0;
}

were you being honest about the c background?!

andrew





More information about the Python-list mailing list