Changes

Jump to: navigation, search

OPS435 Python Lab 2

9 bytes added, 18:03, 25 May 2017
PART 2 - Arguments
sys.exit() # will immediately end our script when run, ignoring the remaining lines in the Python script
</source>Note that the '''sys.exit()''' function will be useful later in this lab, make sure you write it down in your notes.<br><br>
:#Create a new script called '''~/ops435/lab2/showargs.py''' and place add the following content inside:<source>
#!/usr/bin/env python3
:::3. Before proceeding, make certain that you identify any and all errors in "lab2d.py". When the check script tells you everything is "ok", you may procede to the next step.
== PART 2 - Using IF/ELIF/ELSE/ELIF Statements ==
There are many ways to use if statements in more advanced configurations. This section will give a few examples and explain them.
13,420
edits

Navigation menu