[Tutor] object does not support item assignment

Phil phillor9 at gmail.com
Mon Jul 19 00:17:36 EDT 2021


On 19/7/21 1:24 pm, dn via Tutor wrote:
> On 19/07/2021 14.54, Phil wrote:
>> I'm in the process of converting a C++ programme that I wrote some time
>> ago to Python but I've run into a problem at an early stage.

Thank you boB and dn.

I do have several methods including on and off and I'm currently trying 
to produce a group of LEDs so that I can scan the on LED across the 
group; a Cylon effect.

I did think of a dictionary but the list idea is very close to what I 
had in mind and I can now see where I made my mistake.

-- 

Regards,
Phil



More information about the Tutor mailing list