manstey wrote:
> in for loops like the following:
>
> word='abcade'
>
> for letter in word:
>    print letter
>
>
> Is it possible to get the position of letter for any iteration through
> the loop?

for index, letter in enumerate(word):
        print index, letter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to