Changes

Jump to: navigation, search

OPS435 Python Lab 3

228 bytes added, 21:17, 9 August 2017
PART 2 - Creating a Python Script with Functions and Importing Functions
'''Importing Functions From other Python Scripts'''
In order to use functions from other scripts, you are required to either issue the import command in your ipython3 shell environment, or use the '''import''' commandwithin your Python script itself.<br><br>We can demonstrate the use of re-using functions from another script by simply '''issuing statements from the ipython shell to call by calling a function from that is related to your lab3a.py Python script'''. But care MUST be taken to first use the import command to load in the function declarations from your Python script to your ipython shell environment first.<br><br>
:'''Perform the following Instructions:'''
</source>
:# Before proceeding, make certain that you identify any and all errors in lab3a.py. When the checking script tells you everything is OK before proceeding to the next step.
 
::Make notes for all of your observations in your lab log book, and proceed to INVESTIGATION 2.
<br><br>

Navigation menu