ahlongxp wrote:
> list=('a','d','c','d')
> for a in list:
> if a=='a' :
> #skip the letter affer 'a'
>
> what am I supposed to do?
First - don't use list as name, as it is a builtins-name and shadowing is
likely to produce errors at some point.
list_iterator = iter(('a','d','c','d'))
for a in list_iterator:
if a == 'a':
list_iterator.next()
...
should do the trick.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
