how to define a function in python

Published: 10 July 2017
on channel: 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.


On this page of the site you can watch the video online how to define a function in python with a duration of hours minute second in good quality, which was uploaded by the user Cool Python Codes 10 July 2017, share the link with friends and acquaintances, this video has already been watched 259 times on youtube and it was liked by 4 viewers. Enjoy your viewing!