Changes

Jump to: navigation, search

OPS435 Python3 Lab 3

390 bytes added, 14:37, 25 September 2019
PART 4 - Creating a Python Script with Functions and use them in another Python script
print(text)
lab3a.return_number_value()
</source> You should notice that although your script runs without any error, however, it only prints out text returned from the return_text_vaule() function. It does not print out the value returned from the return_number_value() function. Modify the last line like this:<source lang="python">import lab3atext = lab3a.return_text_value()print(text)print(lab3a.return_text_value())</source> You should see the values retuned form all of the function calls should now work.
:# Download the checking script and check your work. Enter the following commands from the bash shell.<source lang="bash">
cd ~/ops435/lab3/
1,760
edits

Navigation menu