This program implements a simple queue data structure using Python. It provides basic operations such as pushing elements, popping the first element, accessing the front and last elements, displaying the queue, and exiting the program..
It allows you to perform the following operations:
- Push Elements: Add an element to the end of the queue.
- Pop First Element: Remove the first element from the queue.
- Front Element: Display the first element in the queue.
- Last Element: Display the last element in the queue.
- Display Queue: Print the elements of the queue.
- Exit: Terminate the program.
- Run the program using a Python interpreter.
- Choose an option by entering the corresponding number when prompted.
- Follow the instructions to perform the desired operation on the queue.
- Repeat steps 2-3 until you choose the "Exit" option to terminate the program.
Note: This implementation assumes that the user will only input integers for simplicity. You can modify it to handle other data types if needed.
This project is licensed under the MIT License.