Determine whether a number is happy by iterating the sum of squares of its digits.
Constraints
Example
>>> is_happy(19) True >>> is_happy(2) False >>> is_happy(1) True >>> is_happy(7) True
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints