384
edits
Changes
→Task 1 - Python script using builtin Functions
print('Hello world')
</source>
<li style="margin-left:25px;">Another way of running a Python program is executing it directly, e.g.: <source>./lab1a.py</source>Note that the file will need execute permissions even though you ran it just fine earlier. Why is that? </ol> =====Submitting Your Lab Work Through GitHub=====If you cloned your lab through GitHub, perform the following now:<source lang="bash"> cd ~/ops445/lab1/ pwd #confirm that you are in the right directory ls lab1a.py #confirm that you have the lab1a.py script in your directory python3 ./CheckLab1.py -f -v lab1a</source><li style="margin-left:25px;">Before moving on to the next step make sure you identify any and all errors in "lab1a.py". When the check script tells you everything is "ok", you may commit your changes.<source lang="bash"> git add lab1a.py commit -m "Added lab1a" git push</source>Your first script is now submitted. The process for each part of the lab will be similar. =====Submitting Your Lab Work Through Blackboard=====If you did not clone your lab through GitHub, you may download the check script by following these steps:
<li style="margin-left:25px;">Download the check script and check your work. Enter the following commands from the bash shell.<source lang="bash">
cd ~/ops445/lab1/
</source>
<li style="margin-left:25px;">Before moving on to the next step make sure you identify any and all errors in "lab1a.py". When the check script tells you everything is "ok", you may proceed to the next step.
= Investigation 4 - exploring Python's built-in Data Objects =