Skip to content

Instantly share code, notes, and snippets.

Created April 27, 2013 23:51
Show Gist options
  • Save anonymous/5475230 to your computer and use it in GitHub Desktop.
Save anonymous/5475230 to your computer and use it in GitHub Desktop.
import pila
p=pila.new()
p2=pila.new()
aux=pila.new()
for i in range(0,5):
elem=input()
pila.apilar(p,elem)
print p
while not pila.esvacia(p):
elem=pila.invertir(p)
pila.apilar(p2,elem)
print p2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment