SHARE
TWEET

Untitled

Roman_Sarnov Sep 18th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while True:
  2.     a = input('Введите первое число: ')
  3.     if a == 'выйти':
  4.         break
  5.     b = input("Введите второе число: ")
  6.     if b == 'выйти':
  7.         break
  8.     try:
  9.         ans = int(a) + int(b)
  10.     except TypeError:
  11.         print('Возникла ошибка TypeError')
  12.     else:
  13.         print(ans)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top