[Tutor] Can't be that difficult

Mats Wichmann mats at wichmann.us
Thu Mar 19 16:54:44 EDT 2020


On 3/19/20 2:52 PM, Mats Wichmann wrote:

> There's nothing visually wrong with your two-line snip here.
> 
> We can't see what else could be wrong, because you only excerpted your
> program.

ah, that was supposed to be the same as your previous message with the
attachment.  there, it's easy to see what is wrong:

Need dictionary =  {40885: 9, 37869: 3, 46041: 1}
Belt Counter ==  Counter({'40885': 9, '37869': 3, '46041': 1})


Need uses integer keys.
Belt Counter uses string keys.
Those won't compare equal...




More information about the Tutor mailing list