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)
Sur cette page du site, vous pouvez voir la vidéo en ligne Python: Defining Functions durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Barry Brown 12 mars 2012, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 88,473 fois et il a aimé 335 téléspectateurs. Bon visionnage!