Lab: Objects and Classes
Activities: Objects and Classes
Complete the Queue Class -
- The files Node.py, Queue.py can be found on Moodle.
- The method dequeue is currently empty.
- ACTIVITY: Complete the Queue class by implementing dequeue.
- ACTIVITY: Write a short script to test it!
Implement the Stack Class -
- The files Node.py, stack.py can be found on Moodle.
- The stack ADT is our old-style dictionary implementation.
- ACTIVITY: Implement the Stack class by converting the old-style ADT to a Python class.
- ACTIVITY: Write a short script to test it!
Hand in the following:
Your completed implementation of the Queue class.
Your implementation of the Stack class.
Attachment:- Assignment Files.rar