1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Data Structures and Algorithms in Python

Connected

Bài tập

Using Python's LifoQueue

In this exercise, you will work with Python's LifoQueue(). You will create a stack called my_book_stack to add books and remove them from it.

Hướng dẫn

100 XP
  • Import the module that contains Python's LifoQueue().
  • Create an infinite LifoQueue().
  • Add an element to the stack.
  • Remove an element from the stack.