Changes

Jump to: navigation, search

OPS435 Python Lab 1

14 bytes added, 07:17, 18 May 2017
Creating the introductory "Hello World" Script
%run ~/ops435/lab1/lab1a.py
</source><br><br>Your python script should have run, if you have any errors you should check that you typed the script in exactly. Be careful of extra spaces, symbols, letters, or lowercase/uppercase differences.<br><br>
:#Exit out of IPython.
:#Now, from the Bash shell we will give it the correct linux permissions and run it. This is just showing the multiple ways you can use this python script. You are not required to have IPython running on a system, however hopefully we can use IPython's powerful features to our advantage.
:# Issue the following command to exit your ipython session:<source>
exit
</source>
:#Now, from the Bash shell we will give it the correct Linux permissions in order to run your newly-created python script. This is just showing the multiple ways you can use this python script. You are not required to have IPython running on a system, however hopefully we can use IPython's powerful features to our advantage.
:# Run your python script by issuing the following commands:<source>
chmod 755 ~/ops435/lab1/lab1a.py
13,420
edits

Navigation menu