<filename>Section 17/4.Document-custom-exceptions.py
'''

age=23


if age>30:
	print("Valid age")
else:
	raise ValueError("Age is less than 30")

'''
age=20

try:
	assert age>30
	print("Valid age")
except AssertionError:
	print("Raised with assert because age is lessthan 30")
except:
	print("Exception occured")


<filename>Section 17/4.Document-custom-exceptions.py
'''

age=23


if age>30:
	print("Valid age")
else:
	raise ValueError("Age is less than 30")

'''
age=20

try:
	assert age>30
	print("Valid age")
except AssertionError:
	print("Raised with assert because age is lessthan 30")
except:
	print("Exception occured")


age=23
 
 
 if age>30:
 	print("Valid age")
 else:
 	raise ValueError("Age is less than 30")