jtentor icon

DemoStack1 - Python - DemoStack1 (arreglo)

jtentor | PRO | 05/11/20 08:49:34 PM UTC | 0 ⭐ | 1558 👁️ | Never ⏰ | []
C++ |

410 B

|

None

|

0 👍

/

0 👎

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
__author__ = 'Julio Tentor <[email protected]>'
 
 
from StackArray import Stack
 
print("Demo de Stack en Python")
 
miPila = Stack(5)
 
miPila.Push('a')
miPila.Push("Hola que tal")
miPila.Push(8956)
 
while (not miPila.Empty):
    print(miPila.Pop())
 
try:
    print(miPila.Pop())
except ValueError as err:
    for a in err.args:
        print(a)

Comments