Flashcards
Sem título
Flashcards do conjunto (4)
- 1Define what is a Function in PythonSequence of reusable statements that performs a desired task. We use the block keyword "def"
- 2What are the benefits of using a function in Python?* Reducing duplication of code
* Improving code clarity
* Decomposing complex problems into simpler pieces - 3Types of functions1. Print : Takes as parameter a string and print the module
2. Return: Returns the path of our module - 4Python Syntax for Print functionsdef functionName (list of parameters)
function statement block
print (function)
Informações
- Descrição
- FlashCards sobre Sem título, criado por L O em 23-02-2016.
- Criado por
- L O
- Visualizações
- 0
- Avaliação
Mais sobre Functions and Procedures