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