#!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'Handle_Exc1' function below.
#
#
def Handle_Exc1():
a=int(input())
b=int(input())
if a>150 or b<100:
raise ValueError ("Input integers value out of range.")
if a+b>400:
raise ValueError("Their sum is out of range")
print("All in range")
# Write your code here
if __name__ == '__main__':
try:
Handle_Exc1()
except ValueError as exp:
print(exp)
Comments
Post a Comment