-
-
Notifications
You must be signed in to change notification settings - Fork 42
Sheffield | 25-SDC-Nov | Hassan Osman | Sprint 5 | Prep Exercises #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Sheffield | 25-SDC-Nov | Hassan Osman | Sprint 5 | Prep Exercises #293
Conversation
…argument in open_account
…user can type an OS
…red OS avaiable and display an offer message
|
There are a lot of files comitted here, can you take a look and figure out why that is happening? |
Yes, I just ignored the .venv so that it's easy for you to navigate through. Please let me know if you need anything else :) |
LonMcGregor
left a comment
There was a problem hiding this comment.
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, there are just two of them I have suggestions for improvements in
| def print_family_tree(person: Person) -> None: | ||
| print(person.name) | ||
| for child in person.children: | ||
| print(f"- {child.name} ({child.age})") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This correctly prints out this person's children. Do you think there is a way to make it print out the whole family tree?
(hint: recursion)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code works, but there are some UX issues:
- When I first run it asks me what OS I want, but I don't yet know which are available without looking at the code. How could this be improved?
- At the end of the output it prints "None" - why does it do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make full sense. Sorted now. Thank you :)
… up with "None" for the selected/entered OS option by end-user

Self checklist
This PR contains my solutions to all the "Prep Exercises" in Sprint 5 of the "Tools" module.