May-04-2020, 07:51 PM
i am starting in python. in my command prompt, py gives the following
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
i have a code with these two lines
AttributeError: module 'collections' has no attribute 'namedtuple'
this clearly appears to be a beginner issue. i have spent some time online to get past this issue.
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
i have a code with these two lines
import collections collections.namedtuple('Card', ['rank', 'suit'])then i get this error
AttributeError: module 'collections' has no attribute 'namedtuple'
this clearly appears to be a beginner issue. i have spent some time online to get past this issue.