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)
Nesta página do site você pode assistir ao vídeo on-line Python: Defining Functions duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Barry Brown 12 Março 2012, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 88,473 vezes e gostou 335 espectadores. Boa visualização!