feat: began problem-05 and created filename2.txt as reference for said problem.
This commit is contained in:
@@ -1 +1,6 @@
|
||||
# Write a Python program that opens a file and handles a PermissionError exception if there is a permission issue.
|
||||
# Write a Python program that opens a file and handles a PermissionError exception if there is a permission issue.
|
||||
|
||||
try:
|
||||
open('filename2.txt')
|
||||
except PermissionError:
|
||||
print('Insufficient file permissions')
|
||||
|
||||
Reference in New Issue
Block a user