Changes

Jump to: navigation, search

OPS435 Python Lab 5

672 bytes removed, 07:13, 21 February 2018
no edit summary
:'''NOTE:''' Since many tasks that system administrators deal with files, this is a crucial skill to understand.
:During the first investigation, you will be explosed to some '''object oriented programming''' elements. Object oriented programming languages (such as Python) have great advantages or other programming languages. Some advantages include greater modularity for '''more effective troubleshooting''', the ability to '''re-use''' objects, and to provide '''greater flexibility''' to allow objects to handle unique situations from various data (for example a date in different formats).introduce the student to basic object oriented programming. To keep things simple, this investigation will focus more on the concept that objects are primarily used to store data and code :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 teach you how to '''handle exception errors''' (commonly referred to as "exception handling") so that your Python script will run gracefully even when problems occur during execution.

Navigation menu