User Defined Exception Program In Python Using Loop