Stack

append 3, 7, 1, pop → top 7

You can also choose a level by clicking a star.

About the course

Description
A list as a stack: append adds to the top, pop removes from the top
More information
Working with lists and strings in Python. Indexes start at zero.
Sample question
append 3, 7, 1, pop → top 7
Author
Jiří Preisler
Version
1.0