Teraz tak to wygląda: Jest tylko problem z drugą funkcją, bo w ogóle jej nie odczytuje
Może potraktuj przypadek gdzie zawartość jest mieszana
digit_sum("e12aw4")
jak else - gdzie wszystkie inne elif-y "nie zadziałały" 
propozycja zmian [ on-line ]
def digit_sum(value: str) -> int:
if not value:
print("Empty string entered!")
return 0
elif value.isalpha():
print('The sum of digits operation could not detect a digit!')
print('The returned input letters are: ', end='')
print(list(map(str, value)))
return 0
elif value.isdigit():
print(sum([int(x) for x in value if x.isdigit()]))
return 1
else: #value.isalpha() and value.isdigit():
numbers = []
letters = []
for y in value:
if y.isdigit(): numbers.append(y)
if y.isalpha(): letters.append(y)
print("The sum of digits operation performs", "+".join(numbers), "=", sum(map(int, numbers)))
print("The extracted non-digits are: {} ".format(letters), end="\n")
return 1
digit_sum("123")
digit_sum("e12aw4")
digit_sum("")
digit_sum("united")
dodałbym jeszcze
value.strip()
dla
digit_sum(" ")
digit_sum(" ")
i
(not y.isdigit() and y.isascii)
dla
digit_sum(" 1 2")
digit_sum("34 - ")
digit_sum("1010 !? g")
przykład [ on-line ]
def digit_sum(value: str) -> int:
if not value.strip():
print("Empty string entered!")
return 0
elif value.isalpha():
print('The sum of digits operation could not detect a digit!')
print('The returned input letters are: ', end='')
print(list(map(str, value)))
return 0
elif value.isdigit():
print(sum([int(x) for x in value if x.isdigit()]))
return 1
else: #value.isalpha() and value.isdigit():
numbers = []
letters = []
for y in value:
if y.isdigit(): numbers.append(y)
if y.isalpha() or (not y.isdigit() and y.isascii): letters.append(y)
print("The sum of digits operation performs", "+".join(numbers), "=", sum(map(int, numbers)))
print("The extracted non-digits are: {} ".format(letters), end="\n")
return 1
digit_sum("123")
digit_sum("e12aw4")
digit_sum("")
digit_sum("united")
print()
digit_sum(" ")
digit_sum(" ")
digit_sum(" 1 2")
digit_sum("34 - ")
digit_sum("1010 !? g")