Mark Lawrence wrote:
> On 01/01/2015 10:15, Steven D'Aprano wrote:
>>
>> I know that the code you show cannot possibly be the code you are using,
>> because the code you show fails. If you ran this code, it would raise
>> TypeError.
>>
>
> Traceback (most recent call last):
> File "C:\Users\Mark\Documents\MyPython\mytest.py", line 16, in <module>
> print('FEMale Watch', inlist.index(i),str(i))
> ValueError: 0 is not in list
>
> Sinner, but as it's New Year's Day I'll let you off :)
I was thinking of the next(inlist).
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list