Search
User login
Username:
*
Password:
*
Register
Placement Papers
Interview Questions
Jobs in India
Content Base
Quiz/Puzzles
Questions
Questions
»
Programming
»
Python
How to use lists as queues in Python ?
Python
Question
>> queue = [1, 2, 3]
>>> queue.append(4)
>>> queue.pop(0)
1
This is Fifo implementation.
Add new comment
Related Links which you may find Helpful:-
zhen rocks !!!
How does brake and continue work in Python ?
How easily create list of arguments from 0 to n in Python ?
What does pass statement means in Python?
How to create a list of files using wildcat and Python?