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.
There was an error while loading. Please reload this page.
1 parent 79a1016 commit c9514fbCopy full SHA for c9514fb
oo/pessoa
@@ -1,2 +1,7 @@
1
class Pessoa:
2
- pass
+ def cumprimentar(self):
3
+ return f"Olá, sou a pessoa {id(self)} na memória :)"
4
+
5
+if __name__ == "__main__":
6
+ p = Pessoa()
7
+ print(p.cumprimentar())
0 commit comments