Advertisement
ancestor_tunji

#three_number_sum

Feb 6th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. #7
  2. def three_number_sum(x = " "): # it can only accept a three character string
  3.     return(int(x[0]) + int(x[1]) + int(x[2]))
  4. #Example
  5. three_number_sum("123")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement