Problems in PYTHON3.5 1. Define a function sumOfDigits that has one parameter of type string. The function should return the sum of the digits in the string. Do not treat multiple digit string as one number – “2014” should be treated as 4 different digits of 2, 0, 1, 4. The function should return 17 for the string “Today’s date is 09/01/2014”. Then write a main program that asks a user to enter a sentence and then displays the sum of digits that are in the sentence by using the function, sumOfDigits. The function sumOfDigits should only do what’s asked to do. It should not do any additional tasks such as print or input!!! Solution Before implementing the function, we need to check whether the integer comes into the string or not. To do that there is an in-built function in Python, isdigit() which checks whether the input is the integer or some other character. def sumOfDigits(input_str): summation = 0 for number in list(input_str): if number.isdigit(): summation += int(number) return summation Hence, this will loop through the entire string and check for each of them whether it is integer or some other character.For all the integer it is summing up the values and returning it at the end of the function definition..