https://github.com/ibrahimdur1989/comp2152-assignment1-workout-stats
Python basics exercise: lists, dictionaries, and loops to summarize friends’ workout minutes (COMP2152 – Assignment 1).
https://github.com/ibrahimdur1989/comp2152-assignment1-workout-stats
beginners cli comp2152-assignment data-structures dictionaries exercise jupyter-notebook lists loops practice-project python
Last synced: about 2 months ago
JSON representation
Python basics exercise: lists, dictionaries, and loops to summarize friends’ workout minutes (COMP2152 – Assignment 1).
- Host: GitHub
- URL: https://github.com/ibrahimdur1989/comp2152-assignment1-workout-stats
- Owner: Ibrahimdur1989
- License: mit
- Created: 2025-08-18T20:58:25.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-08-18T21:59:41.000Z (about 2 months ago)
- Last Synced: 2025-08-18T23:21:16.516Z (about 2 months ago)
- Topics: beginners, cli, comp2152-assignment, data-structures, dictionaries, exercise, jupyter-notebook, lists, loops, practice-project, python
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COMP2152 – Assignment 1: Workout Stats
A small Python exercise that demonstrates **lists**, **dictionaries**, and **loops** to summarize friends’ workout minutes.
## Features
- Calculates total minutes for each friend
- Reports the friend with the **highest** and **lowest** totals
- Lets you look up minutes by a friend’s name
- Simple, dependency-free script (standard Python only)## Requirements
- Python 3.10+ (no external packages required)## Run
```bash
python workout_stats.py
```## Sample Output
```
Enter a friend's name: Jamie
Jamie's workout minutes: (35, 40, 25)
Friend with highest total workout minutes: Taylor
Friend with lowest total workout minutes: Alex
```## Notes
The script is self-contained and uses only built-in Python features.
You can open the notebook with Jupyter if you prefer an interactive version.## License
MIT