Skip to content

Commit

Permalink
Add list comprehension and get() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Liliya committed Oct 27, 2023
1 parent 73da1b7 commit b2059a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ def create_person_list(people: list) -> list:
result_list[index].wife = Person.people[person["wife"]]
elif person.get("husband") is not None:
result_list[index].husband = Person.people[person["husband"]]

return result_list

0 comments on commit b2059a8

Please sign in to comment.