Question: Function ( save _ avg _ score ) . The function will accept four arguments ( name , total _ score,avg _ score and fileObj
Function saveavgscore The function will accept four arguments name totalscore,avgscore and fileObj The first argument is a string representing students name, second and third arguments are float representing the students total and average score, and the fourth argument is a file object. The function will write name and totalscore and avgscore as a single record to fileObj use space as a delimiter Note that fileObj is a file object and there is no need to use open function for it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
