+ 2

How can i using stack in phyton ?

6th Feb 2018, 1:14 PM
Hasan Movahed
Hasan Movahed - avatar
2 Answers
+ 2
It seems Python uses lists as stack. See this link: https://docs.python.org/3.1/tutorial/datastructures.html
6th Feb 2018, 5:21 PM
Paul
Paul - avatar
+ 2
You also can read Mark Lutz's "Programming Python", "Data structures" part. There are 3 different implementations of stack in this book.
14th Feb 2018, 9:06 AM
Alexey Zateev
Alexey Zateev - avatar