Page 1 of 1

write in python write a function named problem3 that accepts a file name as the argument. Read the entire text from the

Posted: Sat May 14, 2022 7:17 pm
by answerhappygod
write in python
write a function named problem3 that accepts a file name as the
argument. Read the entire text from the given file. find and return
the sum of all the digits. you cannot use collection module to
solve this problem. call the function with the test case and
display the return result. test case: if the text in the given text
file is "abc123cda345cc3456 your function should return 36