Implementing Stack And Queue In Python