Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b3b53 commit 67a57b1Copy full SHA for 67a57b1
oo/pessoa.py
@@ -1,2 +1,7 @@
1
class Pessoa:
2
- pass
+ def cumprimentar(self):
3
+ return f'Olá {id(self)}'
4
+
5
+if __name__ == '__main__':
6
+ p = Pessoa()
7
+ print(id(p))
0 commit comments