Sep-18-2017, 06:13 PM
I would put them in a dictionary:
words = {word': Word() for word in somewords}Getting the attributes in is another question, but you could probably make them parameters to __init__, and then load them in while creating the dict.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures