-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
restart #740
base: master
Are you sure you want to change the base?
restart #740
Conversation
app/main.py
Outdated
Person(person["name"], person["age"]) | ||
|
||
for person in people: | ||
if "wife" in person and person["wife"] is not None: |
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.
if "wife" in person and person["wife"] is not None: | |
if person.get("wife") |
app/main.py
Outdated
for person in people: | ||
Person(person["name"], person["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.
You can save person list to a variable and return this variable in the end of the function
app/main.py
Outdated
wife = Person.people[person["wife"]] | ||
Person.people[person["name"]].wife = wife | ||
|
||
if "husband" in person and person["husband"] is not None: |
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.
if "husband" in person and person["husband"] is not None: | |
if person.get("husband") |
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 job
No description provided.