Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 5

2 bytes removed, 04:15, 4 September 2017
PART 1 - Types of Errors
print(add('10',5)) # works
print(add('abc',5)) # exception
print(read_file('file1seneca1.txt')) # works
print(read_file('file10000.txt')) # exception
'error: could not add numbers'
lab5c.read_file('file1seneca1.txt')
['Line 1\n',
'Line 2 is a little longer\n',
:::4. Before proceeding, make certain that you identify any and all errors in lab5c.py. When the checking script tells you everything is OK before proceeding to the next step.
<br><br>
 
 
 
 
= LAB 5 SIGN-OFF (SHOW INSTRUCTOR) =
198
edits