Skip to content

Commit 838ba7a

Browse files
author
GustavoSuto
committed
created cumprimentar method
1 parent e15eec5 commit 838ba7a

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,2 +1,8 @@
11
class Pessoa:
2-
pass
2+
def cumprimentar(self):
3+
return f"Olá, {id(self)}"
4+
5+
if __name__ == '__main__':
6+
p = Pessoa()
7+
print(id(p))
8+
print(p.cumprimentar())

0 commit comments

Comments
 (0)