write a python program to implement queue using a list data structure.
Answers
Answered by
1
Answer:
In Python, a queue is implemented using a list object.
To push an item in the queue, use the list function append list.append(item)
To pop an item from the queue, use the list function pop list.pop(0)
To get the top most item in the queue, get the last index of the list using: list[-1]
Explanation:
mark as brainliest please so that I can attain next rank
Answered by
2
Answer:
this will help you mate
Explanation:
please mark as brainliest answer friend
Attachments:
Similar questions