Functions in Python - Python Step By Step - 11

Publicado em: 11 Abril 2019
no canal de: Atif Naseem
113
5

A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing.

As you already know, Python gives you many built-in functions like print(), etc. but you can also create your own functions. These functions are called user-defined functions.

Function blocks begin with the keyword def followed by the function name and parentheses ( ( ) ).

Any input parameters or arguments should be placed within these parentheses. You can also define parameters inside these parentheses.

The code block within every function starts with a colon (:) and is indented.

The statement return [expression] exits a function, optionally passing back an expression to the caller. A return statement with no arguments is the same as return None.
#PythonTutorial #PythonForBeginners #AtifNaseem


Nesta página do site você pode assistir ao vídeo on-line Functions in Python - Python Step By Step - 11 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Atif Naseem 11 Abril 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 113 vezes e gostou 5 espectadores. Boa visualização!