Skip to content

Add Assignment 3 for Ibrahim Abdirashid#230

Merged
sharafdin merged 1 commit into
goobolabs:mainfrom
Ibrahim-Abdirashid:main
May 12, 2026
Merged

Add Assignment 3 for Ibrahim Abdirashid#230
sharafdin merged 1 commit into
goobolabs:mainfrom
Ibrahim-Abdirashid:main

Conversation

@Ibrahim-Abdirashid
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 12, 2026 10:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Ibrahim Abdirashid’s Assignment 3 submission: a small CLI “Personal Movie Catalog” app that can add/list movies and persist them to disk.

Changes:

  • Added an OOP-based catalog app (CatalogItem, Catalog) with menu-driven CLI.
  • Implemented file persistence via load_catalog / save_catalog.
  • Added an initial catalog_data.txt file with one sample entry.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
submissions/Ibrahim-Abdirashid/assignment3/catalog.py Implements the CLI catalog app and read/write persistence.
submissions/Ibrahim-Abdirashid/assignment3/catalog_data.txt Provides initial catalog data for the app.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +5
from dataclasses import dataclass
from pathlib import Path

Comment on lines +41 to +42
File format: title|year (one item per line)
Raises FileNotFoundError if file doesn't exist.
Comment on lines +72 to +78
def main():
"""Main menu loop for the catalog application."""
catalog_path = "catalog_data.txt"
catalog = Catalog()

# Load existing catalog from file
load_catalog(catalog_path, catalog)
@sharafdin sharafdin merged commit 2aa1831 into goobolabs:main May 12, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants