May-04-2020, 08:10 PM
(May-04-2020, 08:02 PM)buran Wrote: do you havecollections.py
file? If yes - rename it.
Also, please always post full traceback, not just the last line.
As a note, it's not the cause of the error, but line#2 will do nothing, even when you resolve the issue
it should be something like
Card = collections.namedtuple('Card', ['rank', 'suit'])
Yes, I had a collections.py. good lesson learned. renaming it solved the issue.