SHARE
TWEET

Untitled

a guest Oct 10th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def r(a):
  2.     if len(str(a))!= 1:
  3.         return a % 10 + (r((a - a % 10) // 10))
  4.     return a
  5.  
  6.  
  7. print(r(int(input())))
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