Skip to content

Instantly share code, notes, and snippets.

@ricardosiri68
Forked from anonymous/gist:5475230
Created April 28, 2013 00:08
Show Gist options
  • Save ricardosiri68/5475265 to your computer and use it in GitHub Desktop.
Save ricardosiri68/5475265 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