📁 Python API · File I/O · EXA-23

Project Explorer → File I/O → Reusable Grade Functions

Read a Real Project, Not Just One Code Box

แก้ไข student.csv ได้จริง เขียน Python เพื่ออ่านไฟล์ แล้วเชื่อมข้อมูลกับ calGrade.py เพื่อหาจำนวนผู้ผ่านและค่าเฉลี่ย

PYTHON SOURCE

main.py

EDITABLE
TAB 1 EXPECTATION

Load + Parse student.csv

อ่านไฟล์ด้วย open(...,'r') → readlines() → แยก column ด้วย split(',') → แปลง GPA เป็น float

Current dataset → Pass number = 4 · Average = 3.54
PYTHON CONSOLE
Project ready.
Open files from Project Explorer and complete the TODOs.
INSTRUCTOR SOLUTION

Tab 1 + Tab 2 · password protected