I have the following code in python. Inside the LinkedQueue class I have created a display method which prints all the elements in the queue.
I have also created a menu function outside the class which allows the user to choose from two options: add numbers to the queue or to quit the menu. Pressing 'n' allows the user to add numbers to the queue. Pressing 'q' allows the user to quit the menu. After the user has pressed quit, the numbers that they have entered will be printed in the order that they were entered. I am having trouble with printing the numbers and am unsure of how to fix it.
python python-3.x class printing queue