>>> obj = operaciones(-1) >>> print obj -1 >>> obj.num2fact() >>> print obj -1 >>> obj.num2fibo() >>> print obj -1 >>> obj = operaciones(3) >>> print obj 3 >>> obj.num2fact() >>> print obj 6 >>> obj = operaciones(3) >>> print obj 3 >>> obj.num2fibo() >>> print obj 6 >>> import clases >>> help(clases) Help on module clases: NAME clases FILE c:\python24\ex\clases.py DESCRIPTION # Clases # Son las clases que estare creando # Juan Francisco Benavides Nanni - "Dracko" - 11/19/05 CLASSES __builtin__.object operaciones class operaciones(__builtin__.object) | Son operaciones avanzadas. | | Methods defined here: | | __init__(self, num) | | __str__(self) | | num2fact(self) | Cambia el valor de un numero por su factorial. | | num2fibo(self) | Cambia el valor de un numero por su serie de fibonacci. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __dict__ = | dictionary for instance variables (if defined) | | __weakref__ = | list of weak references to the object (if defined) >>> help(operaciones) Help on class operaciones in module __main__: class operaciones(__builtin__.object) | Son operaciones avanzadas. | | Methods defined here: | | __init__(self, num) | | __str__(self) | | num2fact(self) | Cambia el valor de un numero por su factorial. | | num2fibo(self) | Cambia el valor de un numero por su serie de fibonacci. | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | __dict__ = | dictionary for instance variables (if defined) | | __weakref__ = | list of weak references to the object (if defined)