Changes

Jump to: navigation, search

OPS435 Python Lab 3

27 bytes added, 08:50, 2 June 2017
PART 1 - Using Functions
:::3. Let's see what happens if we forget to import functions from your lab3a.py script prior to calling a function. Issue the following:<source>
text = lab3a.return_text_value()
</source>You should notice an error indicating '''"name 'lab3a' is not defined"'''. This error occurs since you failed to instruct the ipython shell to '''import''' or "load existing defined functions from your lab3a.py script" to the '''internal memory'''.<br><br>:::4. Issue the followingwithin the ipython shell:<source>
import lab3a
text = lab3a.return_text_value()
13,420
edits

Navigation menu