Skip to content

Commit 05d654c

Browse files
authored
Merge pull request #23 from OldemarCRC/patch-2
Update 1-objects-and-references.md
2 parents 8034f13 + e2dea8a commit 05d654c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

data/part-9/1-objects-and-references.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -865,14 +865,14 @@ pascal = Person("Blaise Pascal", 1623)
865865
grace = Person("Grace Hopper", 1906)
866866

867867
if older_than(muhammad, pascal):
868-
print(f"{muhammad} is older than {pascal}")
868+
print(f"{muhammad.name} is older than {pascal.name}")
869869
else:
870-
print(f"{muhammad} is not older than {pascal}")
870+
print(f"{muhammad.name} is not older than {pascal.name}")
871871

872872
if older_than(grace, pascal):
873-
print(f"{grace} is older than {pascal}")
873+
print(f"{grace.name} is older than {pascal.name}")
874874
else:
875-
print(f"{grace} is not older than {pascal}")
875+
print(f"{grace.name} is not older than {pascal.name}")
876876
```
877877

878878
<sample-output>

0 commit comments

Comments
 (0)