7 lines
214 B
Python
7 lines
214 B
Python
# 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')
|