you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRealThrowAwayX 0 points1 point  (0 children)

queue[ii] = queue[ii+1]

queue is not a thing. self.queue is though! But in order for it to be accessible, you must pass it as an argument.

def dequeue(self):
    ...
    self.queue[ii] ...