I know I'm going to feel stupid on this one..

I would normally write this in PHP like this:

for($i=1; i< count($someArray); $i++)
{
        print $someArray[i]
}

essentially,, I want to loop through an array skipping "someArray[0]"

but in python the for syntax is more like foreach in PHP..

I've tried this to no avail

 count = 0
 for i in range(1,10):
         if count == 0:
                continue
        else:
                count += 1
                print i
                continue

it prints absolutely nothing.



_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to