Skip to content

Instantly share code, notes, and snippets.

@andresAlvarado
Last active April 3, 2017 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andresAlvarado/ce41ee0fe6e84fb2260306405501e2b0 to your computer and use it in GitHub Desktop.
Save andresAlvarado/ce41ee0fe6e84fb2260306405501e2b0 to your computer and use it in GitHub Desktop.
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