SoloCodigo
Programación Web y Scripting => Python => Mensaje iniciado por: spiritu13 en Viernes 5 de Agosto de 2011, 18:42
-
hola a todos, soy super nuevo y estoy recién comenzando con esto, me propuse crear una pila, y tng esto:
class C_Pila:
def __init__ (Self):
Self.Dato = []
def Push (Self, x):
Self.Dato.append(x)
def Pop (Self):
return ( Self.Dato.Pop() )
def Pila_vacia (Self):
return ( Self.Dato == [] )
la cosa es que no me funciona...
que esta mal? como lo corrijo? :think:
graciaaas
-
Hola, hize un par de videos sobre ese tema, fijate si te sirven. Saludos
http://www.youtube.com/watch?v=mAxBFv7PIbk (http://www.youtube.com/watch?v=mAxBFv7PIbk)
http://www.youtube.com/watch?v=e4D8JmE0EaI (http://www.youtube.com/watch?v=e4D8JmE0EaI)