Skip to content

Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 5 | Prep exercises#514

Open
TarasMykytiuk wants to merge 11 commits into
CodeYourFuture:mainfrom
TarasMykytiuk:sprint5_prep_ex
Open

Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 5 | Prep exercises#514
TarasMykytiuk wants to merge 11 commits into
CodeYourFuture:mainfrom
TarasMykytiuk:sprint5_prep_ex

Conversation

@TarasMykytiuk

@TarasMykytiuk TarasMykytiuk commented Apr 30, 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

Prep exercises for sprint 5 are done.

@TarasMykytiuk TarasMykytiuk 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 Apr 30, 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 Apr 30, 2026
@github-actions

This comment has been minimized.

6 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.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@TarasMykytiuk TarasMykytiuk added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 30, 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 Apr 30, 2026
@TarasMykytiuk TarasMykytiuk changed the title CodeYourFuture/Module-Tools Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 5 | Prep exercises Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 5 | Prep exercises Apr 30, 2026
@TarasMykytiuk TarasMykytiuk added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Apr 30, 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

@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 on these. A few issues in some of the files, see my comments for more info

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.

You don't need to commit these files, can you remove it / ignore it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Now removed.

Comment thread sprint5-prep-exercises/methods.py Outdated
def is_adult(self) -> bool:
current_date = date.today()
full_years = current_date.year - self.date_of_birth.year
if (current_date.month < self.date_of_birth.month) or (

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 there a simpler way of comparing dates?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Used turple comparison.

Comment thread sprint5-prep-exercises/methods.py
Comment thread sprint5-prep-exercises/enums.py Outdated

def main():
input = inputPerson()
if len(input) == 0:

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.

Does your solution appropriately handle if there was an error in the input?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added try-except

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Refactored.

@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 May 13, 2026
@TarasMykytiuk TarasMykytiuk added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jun 16, 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.

My comment about the pycache files is not resolved yet, can you take a look there.

You are now printing an error when handling the input, but is that a useful way of using an app, that it immediately exits when invalid input is given? Can you change it to allow a user to re-attempt the input if something is broken?

@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 Jun 17, 2026
@TarasMykytiuk TarasMykytiuk added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jun 17, 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. 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants