Skip to content

London | 26-SDC-March | Zobeir Rigi | Sprint 5 | prep-exercises#536

Open
Zobeir-Rigi wants to merge 11 commits into
CodeYourFuture:mainfrom
Zobeir-Rigi:prep-exercises
Open

London | 26-SDC-March | Zobeir Rigi | Sprint 5 | prep-exercises#536
Zobeir-Rigi wants to merge 11 commits into
CodeYourFuture:mainfrom
Zobeir-Rigi:prep-exercises

Conversation

@Zobeir-Rigi

@Zobeir-Rigi Zobeir-Rigi commented Jun 8, 2026

Copy link
Copy Markdown
  • 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

sprint 5 - prep exercises, learned about type in Python, mypy, and OOP.

@Zobeir-Rigi Zobeir-Rigi 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 labels Jun 8, 2026
@Zobeir-Rigi Zobeir-Rigi added the Module-Tools The name of the module. label Jun 17, 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 tasks, just one part where code could be improved and another where explanation could be improved.

Comment thread sprint-five-prep/enums.py
preferred_os = parse_os(os_input)

except ValueError as e:
print(f"Error: {e}", file=sys.stderr)

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.

If you get an input error, is there a user friendly way to handle this without exiting the program?

# Encapsulation
# The class controls its own logic
# Example: You change from age → date_of_birth
# Only the class needs to change, External code still works:person.is_adult()

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.

Could you expand on this point, what do you mean by "external code 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. labels Jul 1, 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