I am trying to write a function that holds a variable-length quene. The
quene has 2 bits of information. At some point, I would like to remove
bits of this quene, when they are completed. Is there a way to do this
with something as follows?

quene=[]
quene.append((4,2))
quene.append((3,6))
if(4 in quene):            #Shows false, what's the correct syntax to
show true?
    remove 4 from quene #(Not python code, not sure how to do this...)


So, how can I make this work? Thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to