Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

1 byte added, 08:02, 31 May 2017
INVESTIGATION 1: USING FUNCTIONS
:Usually, a '''function''' will '''contain programming code''' in some part of the main program (most likely near the '''top''' of the program '''BEFORE''' the main program). We refer to that as a '''"function declaration"'''.
: When a program is run, the '''function's code is read into internal memory''', ready to be run when the function is '''run''' (referred to as '''calling the function'''). Until a Function is specifically told to execute, it's code will sit (in internal memory) unused.
 
:When creating programs that define and use functions, '''a large programming task can be broken-down into smaller elements''' (or '''modules'''). This is why creating programs that use functions is referred to as '''"modular programming"'''.
13,420
edits