Changes

Jump to: navigation, search

OPS435 Python Lab 3

64 bytes added, 12:22, 4 September 2017
PART 1 - How User-Defined Functions are Declared and Run
:'''Perform the Following Steps:'''
:#To startLaunch your Centos VM, open the a shell terminal (as a regular user) and start a new ipython3 shellsession:<source>
ipython3
</source>Whenever you want to create a function, you must start with the keyword "'''def'''". The '''def''' keyword is used to start the definition of the function, it does not run the code you write. Functions, just like '''if''' statements, must have all code under them indented.<br><br>
13,420
edits

Navigation menu