#class1.py import random class Die(): def __init__(self,sides=6): self.sides = sides #notice there is no instantiation of list in this file #QUESTION IS WHY IS THIS???? def roll(self,turn): self.turn = random.randint(1,self.sides) return self.turnThere is no list because you didn't put one there! Why do you think there should be one?
What is supposed to be happening that isn't or what, specifically, isn't working correctly?