Changes

Jump to: navigation, search

OPS435 Python Lab 3

51 bytes added, 14:52, 30 May 2017
INVESTIGATION 1: USING FUNCTIONS
:A very simple definition of using '''functions''' is like having '''smaller programs contained inside a larger program''' that can be run by '''function name''' to perform '''repeated or commonly routine tasks'''.
:Usually, the '''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 '''"Defining the function"'''.
: When a program is run, the '''function's code is read into internal memory''', ready to be run when the function is '''run''' (i.e. '''function is "called"'''). By '''calling the function''' the function is run automatically.
13,420
edits

Navigation menu