Skip to content

Glasgow | 26-Jul-SDC | Shreef Ibrahim | Sprint 5 | Prep Exercises - #662

Open
shreefAhmedM wants to merge 9 commits into
CodeYourFuture:mainfrom
shreefAhmedM:prep-exercises
Open

Glasgow | 26-Jul-SDC | Shreef Ibrahim | Sprint 5 | Prep Exercises#662
shreefAhmedM wants to merge 9 commits into
CodeYourFuture:mainfrom
shreefAhmedM:prep-exercises

Conversation

@shreefAhmedM

@shreefAhmedM shreefAhmedM commented Aug 12, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Sprint 5 prep exercises covering dataclasses, type annotations, enums, inheritance, methods, and refactoring and testing the code with mypy.

Task code: CYF-1155

@github-actions

This comment has been minimized.

4 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 12, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 12, 2026
@shreefAhmedM shreefAhmedM added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 12, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good start, but there is still some work to do here

One of the tasks, generics and printing out a family tree might be missing

total_string = format_pence_as_string(total_pence)

print(f"The bank accounts total {total_string}")
def is_adult(person: Person) -> bool:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are these last few lines in the right file?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think one of the tasks, explaining the difference between functions and methods is missing

]

for person in people:
possible_laptops = find_possible_laptops(laptops, person)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

When I run this, I get empty output. Do you see that? Why do you think this happens?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This implementation works, but could the UX and input validation be improved?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants