SHARE
TWEET

Untitled

a guest Feb 27th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. parts = input().split()
  2. name = parts[0]
  3. while name != '-1':
  4.     try:
  5.         age = int(parts[1]) + 1
  6.     except ValueError:
  7.         age = 0
  8.     print('{} {}'.format(name, age))
  9.  
  10.     parts = input().split()
  11.     name = parts[0]
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