-
-
Notifications
You must be signed in to change notification settings - Fork 42
ZA | 25-SDC-Nov | Rashaad Ebrahim | Sprint 5 | Prep Exercises #317
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?
ZA | 25-SDC-Nov | Rashaad Ebrahim | Sprint 5 | Prep Exercises #317
Conversation
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 start on this sprint's tasks, I have spotted a few areas where you could improve code further
Have a look at the "files changed" tab - I think there are some changes here from other tasks
| 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.
Could you find a way to recursively print a full family tree - including grandchildren?
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.
When i try to run this file at the command line I get an error, can you figure out why that happens and fix it?
Learners, PR Template
Self checklist
Changelist
Prep exercises completed
Questions
No questions at this time