13,420
edits
Changes
→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()