Home
Python
2D
Application
Buildin Function
Class
Data Structure
Data Type
Database
Development
Dictionary
Event
Exception
File
Function
GUI Pmw
GUI Tk
Language Basics
List
Math
Network
String
System
Thread
Tuple
Utility
XML
Use list as a stack: push onto stack : Stack « Data Structure « Python
Python
Data Structure
Stack
Use list as a stack: push onto stack
L = [] L.append(1) # push onto stack L.append(2) print L
Related examples in the same category
1.
Use List as a stack: push and pop