Quene

Tuvas tuvas21 at gmail.com
Wed Nov 30 18:38:44 CET 2005


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!




More information about the Python-list mailing list