Changes

Jump to: navigation, search

OPS435 Python Lab 5

505 bytes added, 09:53, 4 September 2017
PYTHON REFERENCE
:Below is a table with links to useful online Python reference sites (by category). You may find these references useful when performing assignments, etc.
 
{| class="wikitable" | style="margin-left:20px; border: 2px solid black;"
|- style="border: 2px solid black;font-weight:bold;text-align:center;"
| style="border: 2px solid black;" | Topic
| style="border: 2px solid black;" | Resource Link
 
|- style="background-color:white;border:none;"
| style="border: 2px solid black;" valign="top"|
:Handling errors & exceptions
| style="border: 2px solid black;" valign="top"|
:[https://docs.python.org/3/tutorial/errors.html Errors & Exceptions]
 
 
|}
 
 
https://docs.python.org/3/tutorial/errors.html
= INVESTIGATION 1: Files =
:This first investigation will cover the ability to open text files on the system, read the contents, store the contents, and finally write the contents back into a file. This is a very common practice in programming, used in situations such as logging output, logging errors, reading/creating configuration files, temporary files, and more. Files are accessed through the use of file objects, an object is a storage location which stores data in the form of attributes(variables) and methods(functions). Creating our own objects will be covered in investigation 3.
== PART 1 - Reading From Files ==
:::4. Before proceeding, make certain that you identify any and all errors in lab5b.py. When the checking script tells you everything is OK before proceeding to the next step.
<br><br>
 
 
 
= INVESTIGATION 2: Exceptions and Error Handling =
13,420
edits

Navigation menu