1. Write a function definition called, sigma, that takes an input file reference as its parameter. The function should read the numbers from a file and calculate their total value (cumulative sum). The function should return the cumulative sum to the calling function. Note: the function reads the entire file (15pts
1. Write a function definition called, sigma, that takes an input file reference as its parameter. The function should read the numbers from a…