Skip to content

Commit

Permalink
Write each argument on a new line
Browse files Browse the repository at this point in the history
  • Loading branch information
Liliya committed Oct 27, 2023
1 parent 853b6c5 commit 79aa458
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ def __init__(self, name: str, age: int) -> None:


def create_person_list(people: list) -> list:
result_list = [Person(name=person["name"], age=person["age"])
for person in people]
result_list = [Person(
name=person["name"],
age=person["age"]
)
for person in people]
for index, person in enumerate(people):
if person.get("wife") is not None:
result_list[index].wife = Person.people[person["wife"]]
Expand Down

0 comments on commit 79aa458

Please sign in to comment.