how to define a function in python

Publié le: 10 juillet 2017
sur la chaîne: Cool Python Codes
259
4

A function is a block of code that is organized in such a way that you can re-use it to perform a particular action in a program.

In this video, you will learn how to define a function in Python.

To define a function you start with the keyword "def".

One the same line you include function name, a parentheses ().

Within the parentheses you can include one or more argument.
at the end of the parentheses you include a colon(:)

Watch now to get the remaining step.

Thank you so much for watching!

If you’d like to see more about Python function and how you can use them to make your code shorter, head over to http://coolpythoncodes.com/python-fun... for more free content.


Sur cette page du site, vous pouvez voir la vidéo en ligne how to define a function in python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Cool Python Codes 10 juillet 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 259 fois et il a aimé 4 téléspectateurs. Bon visionnage!