#!/usr/bin/python # -*- coding: utf-8 -*- # importo el módulo para el debugging import pdb def hello(): print "Funcion: hello start" numero = 98 print "numero es la variable con el contenido %d" % numero pdb.set_trace() print "Funcion: hello end" return True def world(): print "Funcion: world start" otro_numero = 32.5 pdb.set_trace() if hello(): print "la funcion hello() devolvió True" print "Funcion: world end" if __name__ == "__main__": texto = "mi primer variable que se crea" texto = texto.split() for palabra in texto: capitalize = palabra.capitalize() pdb.set_trace() pdb.set_trace() # hago que el programa frene en esta línea hello() pdb.set_trace() # y en esta world() print "Final del programa de prueba"