what's the python for this C statement?

Michele michele at nectarine.it
Mon Oct 20 05:56:10 EDT 2008


Hi there,
I'm relative new to Python and I discovered that there's one single way
to cycle over an integer variable with for:
for i in range(0,10,1)

which is equivalent to:
for (i = 0; i < 10; i++)

However, how this C statement will be translated in Python?

for (j = i = 0; i < (1 << H); i++)

Thanks



More information about the Python-list mailing list