Python STACKs | example implementing a stack using Lists

preview_player
Показать описание
Learn how the Stack data structure works and how to implement a Stack class in Python 3, including Push, Pop, Peek and Clear methods. Example implementation code is available on GitHub below.

RELATED VIDEOS:

#Python
Рекомендации по теме
Комментарии
Автор

Hello Joe, Nice video. I have a suggestion, in the peek functions rather than writing "return why not just write return self.stack[-1] makes the code much cleaner and much crisp.
One question what is a Wrapper Class?

Reversekick
Автор

how did Python know it was a stack though??

miyakakinshasa
visit shbcf.ru