Skip to content

Commit 4e2e07e

Browse files
committed
It does report an error because cant access an attribute that is not given in dic
1 parent 6771d14 commit 4e2e07e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Sprint5/classes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ def __init__(self, name: str, age: int, preferred_operating_system: str):
1414
def is_adult(person: Person) -> bool:
1515
return person.age >= 18
1616

17-
print(is_adult(imran))
17+
print(is_adult(imran))
18+
19+
def works_at(person: Person) -> str:
20+
return person.jobcompany

0 commit comments

Comments
 (0)