Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 5

5 bytes added, 00:43, 19 February 2019
PART 1 - Handling Errors
f.write('hello world\n')
f.close()
except (FileNotFoundError, PermissionError, IsADirectoryIsADirectoryError):
print('failed to open file')
</source>
1,760
edits