One of our sequence 1 (Seq15October12) participants is struggling with an assignment and so far not getting an assist on OpenStudy. Anyone want to step up and help? Just answer in the comments here.
I am trying to complete MIT homework “Exercise 3.6 – Your First
Class” for Gentle Python Week 6. The code below is as far as I’ve gotten.
My problem is two-fold:
1) I don’t know what I’m appending to, if .append is the correct method
for this exercise
2) If .append is the correct method, I’m unclear on how queue and Queue
interact with each when .append is applied.
Perhaps by helping me with Q1 the 2nd question will answer itself.
I know the exercise also requires me to do a “remove,” which I assume
means write a def remove(self) and include a .pop method. But if I can
first learn how to append I assume I can fairly easily add a .pop method.
– – – – – –
def __init__(self, num):
num.self = num
queue = 
queue = Queue()