[Solved] How can i fix this Type Error that appears? [closed]


Your problem is in this expression:

len(cards - 1)

cards appears to be a list; you can’t subtract 1 from a list. I suspect that you mean

len(cards) - 1

solved How can i fix this Type Error that appears? [closed]