Skip to content

Conversation

@SaraTahir28
Copy link

@SaraTahir28 SaraTahir28 commented Dec 4, 2025

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

Completed all exercises in seperate files in the prep.

Questions

Please give me feedback on my work. Thanks

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Your PR couldn't be matched to an assignment in this module.

Please check its title is in the correct format, and that you only have one PR per assignment.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@SaraTahir28 SaraTahir28 changed the title WestMidlands| SDC-NOV-2025| SARA TAHIR | Sprint 5| Feature/sprint 5 WestMidlands| SDC-NOV-2025| SARA TAHIR | Sprint 5| Feature/Prep Dec 4, 2025
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

4 similar comments
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@SaraTahir28 SaraTahir28 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 4, 2025
@SaraTahir28 SaraTahir28 changed the title WestMidlands| SDC-NOV-2025| SARA TAHIR | Sprint 5| Feature/Prep WestMidlands| SDC-NOV-2025| SARA TAHIR | Sprint 5 | Feature/Prep Dec 5, 2025
@OracPrime OracPrime added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jan 5, 2026
Copy link

@OracPrime OracPrime left a comment

Choose a reason for hiding this comment

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

Good code here. Only one bug (and that's only a bug if you allow accounts to have negative balances, but probably worth fixing, since that happens in the real world)


print(is_adult(imran))

def works_at(person: Person) -> str:

Choose a reason for hiding this comment

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

Not sure what works_at is doing here?

num = double("22")
print(num)

#my prediction is that it would return 2222. As python will treat 22 as a string being a strongly typed language.

Choose a reason for hiding this comment

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

Technically Python is "duck typed" not "strongly typed" - worth googling the difference.

try:
age = int(age_str)
except ValueError:
print("Error: Age must be a number.", file= sys.stderr)

Choose a reason for hiding this comment

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

Nice! Liking the use of stderr here.

for child in person.children:
print(f" {child.name} ({child.age})")

print_family_tree(Sara) No newline at end of file

Choose a reason for hiding this comment

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

This is all good. If you want (and only if you want) a stretch objective, make it cope with children who have children and print out a proper tree (so children, grandchildren, great-grandchildren increasingly indented). Definitely an optional task


for person in people:
possible_laptops = find_possible_laptops(laptops, person)
print(f"Possible laptops for {person.name}: {possible_laptops}") No newline at end of file

Choose a reason for hiding this comment

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

All good!


def format_pence_as_string(total_pence: int)-> str: #type int returns type str
#formatting pence as a string
if total_pence < 100:

Choose a reason for hiding this comment

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

What happens if the account has a negative balance?

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