FIFO dequeueing in python?
- by Aaron Ramsey
hello again everybody—
I'm looking to make a functional (not necessarily optimally efficient, as I'm very new to programming) FIFO queue, and am having trouble with my dequeueing.
My code looks like this:
class QueueNode:
def __init__(self, data):
self.data = data
self.next = None
def __str__(self):
return…