Advertisement
Guest User

Untitled

a guest
Mar 20th, 2023
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. import sys
  2.  
  3. def main():
  4.  
  5.     input1 = int(input("1st number: "))  
  6.     if input1 not in range(10,101):
  7.         sys.exit("1st number is out of range!")
  8.     else:
  9.         input2 = int(input("2nd number: "))
  10.         if input2 not in range(10,101):
  11.             sys.exit("Both numbers are out of range!")
  12.            
  13. if __name__ == "__main__":
  14.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement