# csv-exercise **Repository Path**: arsalabangash/csv-exercise ## Basic Information - **Project Name**: csv-exercise - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 101 - **Created**: 2025-03-04 - **Last Updated**: 2025-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Exercise 1: Basic Statistics with CSV Files ## English 1. **Objective**: Learn to read CSV files and manually calculate mean, median, and mode of math scores. 2. **Tasks**: - Read the CSV file using Python's built-in `csv` module - Extract the math scores from the data - Calculate the mean (average) of all math scores - Calculate the median (middle value) of all math scores - Calculate the mode (most frequent value) of all math scores - Print all three statistics with appropriate labels 4. **Requirements**: - Use simple loops and basic Python syntax - Do not use external libraries like NumPy or Pandas for this exercise - Include comments explaining your code ## Chinese 1. **目标**:学习如何读取CSV文件并手动计算数学分数的平均值、中位数和众数。 2. **任务**: - 使用Python内置的`csv`模块读取CSV文件 - 从数据中提取数学分数 - 计算所有数学分数的平均值 - 计算所有数学分数的中位数(中间值) - 计算所有数学分数的众数(最常见的值) - 使用适当的标签打印这三个统计数据 4. **要求**: - 使用简单的循环和基本Python语法 - 不要使用NumPy或Pandas等外部库 - 包含解释代码的注释