0

Python Functions

Could someone please help me understand how functions work and the flow of them?

21st Jul 2018, 3:34 PM
Shawn
Shawn - avatar
2 Answers
+ 2
A function is a peace of reusable code. It can take arguments, and use these for some things. You can call functions, and pass them arguments. https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2285/
21st Jul 2018, 4:01 PM
Paul Grasser
Paul Grasser - avatar
+ 1
Practically, a function is like a reusable machine (in code) that performs a task. In other to perform the task it might need inputs (arguments). After performing the task it might also produce a result (return output).
1st Oct 2020, 12:41 AM
Afutu Baron