Menu
Coddy logo textTech

Practice #3

Lesson 12 of 12 in Coddy's File Handling in Python course.

challenge icon

Challenge

Medium

Tasks:

  1. Read the sample CSV file named scores.txt provided (See example below).
  2. Determine the highest score in each subject and the student who achieved it.
  3. Display the calculated information in a readable format (See example below).

Example CSV File - scores.txt:

Name,Math,Science,History
Alice,85,90,78
Bob,92,78,85
Carol,78,92,88
David,88,82,90
Eve,95,88,75

Example Output:

Highest Scores:
Math: Eve (95)
Science: Carol (92)
History: David (90)

Try it yourself

# Write code here

All lessons in File Handling in Python