Python Fifo Queue Lab9pr1py Zybook Problem Please Use Node Class Used Linked Lists Lecture Q37041849

IN PYTHON ONLY

FIFO Queue lab9pr1.py, Zybook
For this problem, please use the Node class that we used for linkedlists during the lectures. For this please import the Node.py fileat the top of your file using:

from Node import *

A first-in first-out queue (FIFO Queue) is a data structure thatconceptually stores a linear list of items by providing thefollowing functionality:

• enqueue(item) appends the new item at the end (the tail) ofthe queue.
• dequeue() removes the first item (the head) from the queue andreturns it.

It returns None if the queue is empty.
• isEmpty() returns True if the queue is

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.