Write a function named sumDigits which takes a number as input and returns the sum of the absolute value of each of the number's decimal digits.  For example:

```python
  sum_digits(10)  # Returns 1
  sum_digits(99)  # Returns 18
  sum_digits(-32) # Returns 5
```

Let's assume that all numbers in the input will be integer values.

Difficulty: EASY
Tags: Fundamentals

Starter code:
def sum_digits(number):
	

Solutions:
def sum_digits(number):
	return sum(map(int, str(abs(number))))


def sum_digits(n):
	return eval('+'.join(str(abs(n))))


def sum_digits(number):
	num_string = str(abs(number))
	total = 0
	for char in num_string:
		total += int(char)
	return total


def sum_digits(number):
	d = 0
	for c in str(abs(number)):
		d += ord(c) - 48
	return d


sum_digits = lambda n: sum((int(e) for e in str(abs(n))))


def sum_digits(n):
	return sum([int(x) for x in str(abs(n))])


def sum_digits(number):
	return sum((int(ele) for ele in str(abs(number))))


def sum_digits(number):
	return sum([int(i) for i in str(abs(number))])


def sum_digits(number):
	inp = str(number)
	s = 0
	for x in inp:
		try:
			s += int(x)
		except:
			pass
	return s


def sum_digits(number):
	return sum((int(digit) for digit in str(number).replace('-', '')))


def sum_digits(number):
	sum = 0
	if number < 0:
		number = number * -1
	while len(str(number)) != 1:
		sum += number % 10
		number = number // 10
	sum += number
	return sum


def sum_digits(number):
	sum = 0
	if len(str(number)) == 1:
		return number
	else:
		for i in range(len(str(number))):
			if str(number)[i] == '-':
				sum += 0
			else:
				sum += int(str(number)[i])
		return sum


def sum_digits(number):
	if number < 0:
		number *= -1
	return sum(map(int, str(number)))


def sum_digits(number):
	string = str(number)
	for char in string:
		if char == '-':
			string = string.replace(char, '')
	return sum([int(x) for x in string])


def sum_digits(number):
	return sum((int(i) if not i == '-' else 0 for i in str(number)))


def sum_digits(number):
	str_num = str(number)
	ret_num = 0
	for num in str_num:
		if num != '-':
			ret_num = ret_num + int(num)
	return ret_num


def sum_digits(number):
	total = 0
	for digit in str(abs(number)):
		total += int(digit)
	return total


def sum_digits(x):
	if len(str(x)) == 1:
		return x
	suma = 0
	for j in str(x):
		if j != '-':
			suma += int(j)
	return suma


def sum_digits(number):
	sum = 0
	for num in str(abs(number)):
		sum += int(num)
	return sum


def sum_digits(number):
	number = str(number)
	numT = 0
	for i in number:
		if i != '-':
			numT += int(i)
	return numT


def sum_digits(number):
	number = abs(number)
	if number == 0:
		return 0
	return number % 10 + sum_digits(number // 10)


def sum_digits(number):
	chars = list(str(number))
	digits = [int(char) for char in chars if char.isdigit()]
	return sum(digits)


def sum_digits(number):
	s = 0
	n = str(number)
	for i in n:
		if i.isdigit():
			s += int(i)
	return s


def sum_digits(number):
	kol = 0
	j = ''
	string = str(number)
	for i in string:
		j = ''
		if i == '-':
			continue
		else:
			j += i
		kol += int(j)
	return kol


def sum_digits(number):
	sum = 0
	for char in str(number):
		if char == '-':
			continue
		else:
			sum = sum + eval(char)
	return sum


def sum_digits(number):
	sum = 0
	number = abs(number)
	number = str(number)
	for i in number:
		print(i)
		sum += int(i)
	return sum


def sum_digits(number):
	digits = list(map(str, str(number)))
	digits = [int(x) for x in digits if x.isdigit()]
	return sum(digits)


def sum_digits(number):
	result = 0
	is_minus = False
	if number < 0:
		is_minus = True
		number = number * -1
	for element in str(number):
		result += int(element)
	return result


def sum_digits(number):
	nr = str(number)
	total = 0
	for i in range(len(nr)):
		if nr[i].isdigit():
			total += int(nr[i])
	return total


def sum_digits(number):
	t = 0
	for i in str(number):
		if i.isdigit():
			t = t + int(i)
	return t


def sum_digits(number):
	luz = abs(number)
	liz = [int(x) for x in str(luz)]
	return sum(liz)


def sum_digits(number):
	total = 0
	for num in str(abs(number)):
		total += int(str(num))
	return total
print(sum_digits(23))


def sum_digits(number):
	summ = 0
	number = str(number)
	for num in number:
		if num.isdigit():
			summ += int(num)
		else:
			pass
	return summ


def sum_digits(number):
	asum = 0
	for val in str(number):
		if val != '-':
			print(val)
			asum += int(val)
	return asum


def sum_digits(number):
	numberList = [int(x) for x in str(abs(number))]
	return sum(numberList)


def sum_digits(number):
	y = 0
	for x in str(number):
		if x == '-':
			pass
		else:
			y += int(x)
	return y


def sum_digits(number):
	if number < 0:
		number *= -1
	a = str(number)
	return sum([int(i) for i in a])


def sum_digits(number):
	if number >= 0:
		total = 0
		for i in str(number):
			total += int(i)
		return total
	else:
		total = 0
		for i in str(number)[1:]:
			total += int(i)
		return total


def sum_digits(num):
	return sum([int(i) for i in str(num) if i.isdigit()])


def sum_digits(number):
	result = 0
	for num in str(number):
		try:
			result += int(num)
		except:
			continue
	return result


def sum_digits(number):
	num_str = str(abs(number))
	s = 0
	for i in num_str:
		s += int(i)
	return s


def sum_digits(number):
	splits = list(str(number))
	num_lst = []
	for num in splits:
		try:
			if type(int(num)) == int:
				num_lst.append(int(num))
		except:
			continue
	return sum(num_lst)


def sum_digits(number):
	num = str(abs(number))
	res = 0
	for item in num:
		res += int(item)
	return res


def sum_digits(number):
	num = str(number)
	num = [int(x) for x in num if x != '-']
	return sum(num)


def sum_digits(number):
	sumnumbers = 0
	for numbers in str(number.__abs__()):
		sumnumbers += int(numbers)
	return sumnumbers


def sum_digits(number):
	n = str(abs(number))
	sum = 0
	for i in range(len(n)):
		sum += int(n[i])
	return sum


def sum_digits(number):
	q = 0
	h = str(number.__abs__())
	for i in h:
		q += int(i)
	return q


def sum_digits(number):
	number_list = list(str(number))
	sum = 0
	print(number_list)
	for x in number_list:
		if x == '-':
			continue
		else:
			sum += int(x)
	return sum


def sum_digits(number):
	digits = []
	remove = []
	num_sum = 0
	if number < 0:
		number = abs(number)
	for split in str(number):
		digits.append(split)
	print(digits)
	for add in digits:
		num_sum += int(add)
	print(num_sum)
	return num_sum


def sum_digits(number):
	k = sum(list(map(int, str(abs(number)))))
	return k


def sum_digits(number):
	sum = 0
	for e in str(abs(number)):
		sum += int(e)
	return sum


def sum_digits(number):
	if number < 0:
		number = number * -1
	total = 0
	while number > 0:
		dig = number % 10
		total += dig
		number = number // 10
	return total


def sum_digits(number):
	my_sum = 0
	number = abs(number)
	while number >= 10:
		my_sum = my_sum + number % 10
		number = int(number / 10)
	my_sum = my_sum + number
	return my_sum


def sum_digits(number):
	sum_digits = 0
	number2 = abs(number)
	for i in str(number2):
		sum_digits += int(i)
	return sum_digits


def sum_digits(number):
	num = str(number)
	num = num.lstrip('-')
	result = 0
	for i in num:
		result += int(i)
	return result


def sum_digits(number):
	sum = 0
	while abs(number) // 10 != 0:
		sum += abs(number) % 10
		number = abs(number) // 10
	sum += abs(number) % 10
	return sum


def sum_digits(number):
	number = abs(number)
	number = str(number)
	sum_num = 0
	for i in number:
		i = int(i)
		sum_num = sum_num + i
	return sum_num


def sum_digits(number):
	absNum = number if number > 0 else -number
	strList = list(str(absNum))
	return sum(map(lambda x: int(x), strList))


def sum_digits(number):
	abs_value = 0
	numbers = map(int, str(number).strip('-'))
	for i in numbers:
		abs_value += i
	return abs_value


def sum_digits(number):
	count = 0
	number = abs(number)
	for num in str(number):
		count = count + int(num)
	return count


def sum_digits(number):
	if number < 0:
		number *= -1
	if number < 10:
		return number
	else:
		last_digit = number % 10
		return sum_digits(number // 10) + last_digit


def sum_digits(number):
	sn = str(number)
	rez = 0
	for i in sn:
		if i.isnumeric():
			rez += int(i)
	return rez


def sum_digits(number):
	naked = str(number).strip('-')
	return sum((int(digit) for digit in naked))


import numpy as np

def sum_digits(number):
	number = int(np.sqrt(number ** 2))
	return sum([int(d) for d in str(number)])


def sum_digits(num):
	sum = 0
	for x in str(abs(num)):
		sum += int(x)
	return sum


def sum_digits(number):
	number = abs(number)
	result = 0
	while number > 0:
		result += number % 10
		number //= 10
	return result


def sum_digits(number):
	bruh = 0
	for i in str(abs(number)):
		bruh += int(i)
	return bruh


def sum_digits(number):
	for i in str(number):
		if i == '-':
			number = str(number).strip('-')
		else:
			pass
		digits = [int(x) for x in str(number)]
	return sum(digits)


def sum_digits(number):
	n = []
	for i in str(number):
		if i != '-':
			n.append(int(i))
	return sum(n)


import math

def sum_digits(n):
	n = round(math.fabs(n))
	all = [int(s) for s in str(n)]
	return sum(all)