Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Nodo:
def __init__( self, dato ):
self.dato = dato
self.sig = None
#def asignarDato( self, dato ):
# self.dato = dato
def asignarSig( self, sig ):
self.sig = sig
def obtenerSig( self ):
return self.sig
def obtenerDato( self ):
return self.dato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment