We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83043b0 commit ade57a1Copy full SHA for ade57a1
1 file changed
oo/pessoa.py
@@ -1,2 +1,10 @@
1
class Pessoa:
2
- pass
+ def cumprimentar(self):
3
+ return f'Olá {id(self)}'
4
+
5
6
+if __name__ == '__main__':
7
+ p = Pessoa()
8
+ print(Pessoa.cumprimentar(p))
9
+ print(id(p))
10
+ print(p.cumprimentar())
0 commit comments