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, 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
The Python code to read from an input file that has been successfully opened into an object inf and ... View full answer
Get step-by-step solutions from verified subject matter experts
