Given an integer, take the (mean) average of each pair of consecutive digits. Repeat this process until you have a single integer, then return that integer. e.g.
Note: if the average of two digits is not an integer, round the result **up** (e.g. the average of 8 and 9 will be 9)
## Examples
```
digitsAverage(246)  ==>  4
original: 2   4   6
           \ / \ /
1st iter:   3   5
             \ /
2nd iter:     4
digitsAverage(89)  ==>  9
original: 8   9
           \ /
1st iter:   9
```
p.s. for a bigger challenge, check out the [one line version](https://www.codewars.com/kata/one-line-task-digits-average) of this kata by myjinxin2015!
from math import ceil
def digits_average(input):
  if input < 10:
    return input
  else:
    l = [int(i) for i in list(str(input))]
    r = [ceil(sum(i)/2.0) for i in list(zip(l,l[1:]))]
    return r[0] if len(r) == 1 else digits_average(int("".join([str(i) for i in r])))
from math import ceil
def digits_average(input):
  if input < 10:
    return input
  else:
    l = [int(i) for i in list(str(input))]
    r = [ceil(sum(i)/2.0) for i in list(zip(l,l[1:]))]
    return r[0] if len(r) == 1 else digits_average(int("".join([str(i) for i in r])))