<reponame>shreya-n-kumari/python<filename>exception2.py
filename = "dogs.txt.txt"
try:
	with open(filename) as f_obj:
		contents = f_obj.read()
		print(contents)
except FileNotFoundError:
	msg = "sorry the file " + filename + " does not exist."
	print(msg)

	

filename = "dogs.txt.txt"
try:
	with open(filename) as f_obj:
		contents = f_obj.read()
		print(contents)
except FileNotFoundError:
	msg = "sorry the file " + filename + " does not exist."
	print(msg)