Skip to content

London | 26-SDC-July | AYK | Sprint 5 | Prep Exercises CYF-1155 - #643

Open
sarawone wants to merge 9 commits into
CodeYourFuture:mainfrom
sarawone:AYK_Sprint5_PrepExercise
Open

London | 26-SDC-July | AYK | Sprint 5 | Prep Exercises CYF-1155#643
sarawone wants to merge 9 commits into
CodeYourFuture:mainfrom
sarawone:AYK_Sprint5_PrepExercise

Conversation

@sarawone

@sarawone sarawone commented Aug 1, 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

Hi, there.
Please kindly check and provide feedback on my PR.
Thanks and Regards,
AYK

@sarawone sarawone added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 5 Assigned during Week 5 of this module Module-Tools The name of the module. labels Aug 1, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 3, 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 work, I have some comments. I think there is one more task, about inheritance. Have you done that one?

print(imran.dob)
print(imran.get_age())


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.

As part of task 4, can you Explain advantages / disadvantages between class methods vs free functions


def get_age(self) -> int :
today = dt.date.today()
return today.year - self.dob.year

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.

Is the year the only part you need to consider for this to work?

@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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Tools The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 5 Assigned during Week 5 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants