Changes

Jump to: navigation, search

OPS435 Python Lab 5

8 bytes added, 21:09, 5 June 2019
m
LAB OBJECTIVES
:So far, you have created Python scripts to prompt a user to input data from the keyboard. When creating Python scripts, you may also need to be able to process large volumes of information, or store processed data for further processing. The first investigation in this lab will focus on file management, opening files, saving data to files, and reading files.
:'''NOTE:''' Since many tasks that system administrators perform deal with files, this is a crucial skill to understand.
:It is very important to provide logic in your Python script in case it '''encounters an error'''. An example would be an invalid path-name or trying to close a file that is already closed. The second investigation in this lab will look into how the Python interpreter '''handle errors''' (commonly referred to as "exception handling") at run time, and learn how to write Python codes that will run gracefully even when problems occur during program execution.

Navigation menu