Flashcards
Untitled
Cards in this deck (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)
Information
- Description
- Flashcards on Untitled, created by L O on 23/02/2016.
- Created by
- L O
- Views
- 0
- Rating
More on Functions and Procedures