Question: 4. Given the following input file format (see Figure 1): Using for-loop, write Python statements that reads input file (with unknown number of records)

4. Given the following input file format (see Figure 1): Using for-loop, 

4. Given the following input file format (see Figure 1): Using for-loop, write Python statements that reads input file (with unknown number of records) into an object named inF and display student names whose mark is more than 90. Assume input file is already successfully opened into object inF. (2 points) Amal Al-Sariri; Math; 90.5 Ruqiya Salim; Stat; 93.25 Mustafa; Comp; 78.5 Figure 1. Input file sample

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The Python code to read from an input file that has been successfully opened into an object inf and ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!