Skip to content

London | 26-SDC-MAR | Craig D'Silva | Sprint 5 | Prep#496

Open
craig-dsilva wants to merge 3 commits into
CodeYourFuture:mainfrom
craig-dsilva:week-5-prep
Open

London | 26-SDC-MAR | Craig D'Silva | Sprint 5 | Prep#496
craig-dsilva wants to merge 3 commits into
CodeYourFuture:mainfrom
craig-dsilva:week-5-prep

Conversation

@craig-dsilva
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

This is the prep work for week 5.

@craig-dsilva craig-dsilva added 🏕 Priority Mandatory This work is expected 🦑 Size Large 4-8 hours 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 Apr 15, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label May 13, 2026
Copy link
Copy Markdown
Contributor

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good work, can you review my 2 comments please

self.preferred_operating_system = preferred_operating_system

def is_adult(self):
return self.age >= 18
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.

Can you think of any conditions where this approach of pre-calculating the age in the constructor might cause problems?

class Person:
name: str
age: dt.date
preferred_operating_system: str
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.

Can you add the is_adult method here and test that it still works?

@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 May 13, 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. 🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take. 🦑 Size Large 4-8 hours 📅 Sprint 5 Assigned during Week 5 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants