Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazurkav committed Dec 10, 2024
1 parent abae1f8 commit 926bc9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def create_person_list(people: list) -> list:
:return: List of Person instances.
"""
# First, create Person instances without relationships
person_instances = [Person(person["name"], person["age"]) for person in people]
person_instances = [
Person(person["name"],
person["age"]) for person in people
]

# Then, set relationships (wife/husband)
for person in people:
Expand Down

0 comments on commit 926bc9e

Please sign in to comment.