Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #python queue algorithm example
- #find, insert and delete functions
- try:
- import Queue as Q # ver. < 3.0
- except ImportError:
- import queue as Q
- q = Q.Queue()
- q.put(10)
- q.put(1)
- q.put(5)
- while not q.empty():
- print (q.get(),)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement