Question: Given a file which contains integer values. Find the sum of all integer numbers. Write a function: def solution(FN): that accepts a file name. The

Given a file which contains integer values. Find the sum of all integer numbers. Write a function: def solution(FN): that accepts a file name. The function should find the sum of all the numbers in a file and return the sum. Input 1 2 3 4 5 45 673 41 Note: File contains numbers separated by single or multiple spaces. Output 108
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
