A video about writing simple functions in the Python programming language. We start by defining a function in the Python Shell. Then we show how to write the same function in a text editor and include unit tests (using the doctest module).
To use doctest, include the following three lines at the bottom of your file:
if _name_ == "__main__":
import doctest
doctest.testmod(verbose=True, optionflags=doctest.NORMALIZE_WHITESPACE)
En esta página del sitio puede ver el video en línea Python: Defining Functions de Duración hora minuto segunda en buena calidad , que subió el usuario Barry Brown 12 marzo 2012, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 88,473 veces y le gustó 335 a los espectadores. Disfruta viendo!