## Challenges

Reddit challenges in python language.

Files Code and Result

### challenge122_easy

```'''
As a crude form of hashing function, Lars wants to sum the digits of a number.
Then he wants to sum the digits of the result, and repeat until he have only
one digit left. He learnt that this is called the digital root of a number,
but the Wikipedia article is just confusing him.

Can you help him implement this problem in your favourite programming language?

It is possible to treat the number as a string and work with each character at
a time. This is pretty slow on big numbers, though, so Lars wants you to at
least try solving it with only integer calculations (the modulo operator may
prove to be useful!).

Author: TinyLebowski
Formal Inputs & Outputs
Input Description

A positive integer, possibly 0.
Output Description

An integer between 0 and 9, the digital root of the input number.
Sample Inputs & Outputs
Sample Input

31337
Sample Output

8, because 3+1+3+3+7=17 and 1+7=8
Challenge Input

1073741824

'''

a = 31337
b = a%9
print(b)
c = 1073741824
d = c%9
print(d)
```

```8
1
```