Karteikarten
Ohne Titel
Karten in diesem Stapel (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)
Informationen
- Beschreibung
- Karteikarten am Ohne Titel, erstellt von L O am 23/02/2016.
- Erstellt von
- L O
- Aufrufe
- 0
- Bewertung
Mehr zu Functions and Procedures