Hi Experts,
I have a Python class called "KeywordTree(object)" already. Now I want to create another Python class "KeywordMember" to contain some extra data.
The "KeywordTree" class should contain an instance of this new created class "KeywordMember". My questions are
(1.) Where should I declare this "KeywordMember" class?
(2.) How to add a class variable "keyword_dict" to the "KeywordTree" class? "keyword_dict" is a dictionary.
I am new to Python. I read tutorials online but did not find my answers.
All replies are highly appreciated!
Start Free Trial