Skip to content

Commit c3bfc55

Browse files
committed
My commit
1 parent b1dfed5 commit c3bfc55

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

oo/pessoa.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
class Pessoa:
2-
pass
2+
def cumprimentar(self):
3+
return f'Oi! {id(self)}'
34

5+
if __name__ == '__main__':
6+
p = Pessoa()
7+
print(Pessoa.cumprimentar(p))
8+
print(id(p))
9+
print(p.cumprimentar())

0 commit comments

Comments
 (0)